@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* General Body Styles */
body {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(110.93deg, #FFFFFF 6.08%, #A9C038 112.33%);
    font-family: 'Montserrat', sans-serif;
}


#dimmedBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;  // High enough to ensure it is above other content but below the overlay
    display: none;  // Start as hidden
}

/* Overlay Container Styles */
.success-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the overlay on the screen */
    width: auto;
    height: auto;
    background-color: #FBFCF6; /* Background color for visibility */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for depth */
    z-index: 1000; /* High z-index to ensure it appears above all other content */
    display: none; /* Initially hidden */
    flex-direction: column;
    align-items: center;
    justify-content: center;
	background: #FBFCF6;
	border-radius: 10px;
	max-width: 420px;
}

.success-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures that children are justified to start, center, and end respectively */
    align-items: center; /* Keeps everything centered horizontally */
    padding: 35px; /* Retains the padding on all sides */
    background-color: #FBFCF6;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    max-width: 500px; /* Ensures the content does not stretch too wide */
    width: 100%; /* Ensures the content uses the full width of its container */
    height: 100%; /* Uses the full height to stretch the content if needed */
    box-sizing: border-box; /* Includes padding in the width and height */
}

.success-image {
    max-width: 60px; /* Restricts size */
	margin-bottom: 20px;
}

.success-heading {
    font-family: 'Montserrat';
font-style: normal;
font-weight: 600;
font-size: 20px;
line-height: 24px;
text-align: center;
margin-top: 0;
  padding-top: 0;
color: #000000;
}

.success-paragraph {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 17px;
text-align: center;
color: #3C3C3C;
max-width: 306px;
 padding-top: 0px;
  margin-top: 0px;

}

.email-text {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600; /* Bold to make the email stand out */
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #3C3C3C; /* Dark gray color for readability */
    display: inline; /* Keeps the email inline with the rest of the text */
}

.spam-notice {
    font-style: italic;
    font-weight: 400;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    color: rgba(60, 60, 60, 0.71);
	width: 80%;
}


/* Common Button Styles */
.button-group button {
    font-family: 'Montserrat', sans-serif; /* Sets the typeface to Montserrat */
    font-style: normal;
    font-weight: 600; /* Bold weight for emphasis */
    font-size: 14px; /* Uniform font size for button text */
    line-height: 17px; /* Line height closely matching the text size */
    text-align: center; /* Ensures the text is centered within the button */
    border-radius: 10px; /* Uniform rounded corners for a softer visual feel */
    cursor: pointer; /* Indicates the button is clickable */
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions for hover effects */
    border: none; /* Ensuring no border by default */
    box-sizing: border-box; /* Includes padding and border in the element's total dimensions */
    width: 100%; /* Ensures button group stretches across the container */
    justify-content: space-between; /* Spaces buttons evenly */
    padding-bottom: 0; 
}

.button-group button {
    flex-grow: 1; /* Allows buttons to grow and fill the space */
    margin: 10px; /* Adds a small margin between buttons */
}
/* Send Again Button Styles */
#sendAgainButton {
    color: #161618; /* Dark text color for visibility */
    background-color: #FFFFFF;
    border: 1px solid #000000; /* Solid black border */
	margin-left: 0px;
}

#sendAgainButton:hover {
    background-color: #FBFCF6; /* Slightly darker shade on hover for feedback */
    color: #0f0f0f; /* Darker text color on hover for better contrast */
}

/* Got It Button Styles */
#gotItButton {
    color: #FFFFFF; /* White text color for contrast against the dark background */
    background-color: #161618; /* Dark background color */
	margin-right: 0px;
}

#gotItButton:hover {
    background-color: #0e0e0e; /* Slightly lighter on hover for visual feedback */
    color: #dcdcdc; /* Slightly lighter text on hover for a subtle effect */
}




/* Logo Styles */
.logo-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: auto;
    margin: 15px;
}

.logo-outer img, .logo-inner img {
    width: 100%;
    height: auto;
}

.logo-inner {
    display: none;
}
/* Submain Container Styling Adjustments */
.submain-container {
	width: 381px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin: 20px 0; /* You might want to adjust this if needed */
    width: 100%; /* Full width of its parent container */
}

.message-container {
	font-family: 'Montserrat', sans-serif;
    color: red; 
    text-align: center; 
    width: 100%; 
	visibility: hidden;
}

.error {
    display: block; /* Important: This ensures the element is visible when it has the 'error' class */
}

/* Main Container Styles */
.main-container {
    position: relative;
    width: 429.75px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 7.5px;
    margin: auto;
}

/* Container Styling */
.submain-container, .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.form-container {
	padding-top: 52.5px;
}


.heading-container h2 {
    font-weight: 600;
    font-size: 41.25px;
	color: #161618;
	text-align: center;
	margin-top: 0;
    margin-bottom: 3.75px;
}

.paragraph-container p {
    font-weight: 400;
    font-size: 15.5px;
	color: #494949;
	text-align: center;
	margin-top: 3.75px;
    margin-bottom: 0;
}

.link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;  /* Ensure links are not underlined */
	margin-left: 10%;
	margin-right: 10%;
}

.link-container a {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    text-align: center;
    color: #161618;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;  /* Ensures no underline on the link */
    transition: font-size 0.3s ease;  /* Smooth transition for font size change */
	text-align: center;
    font-size: 14.85px;
    line-height: 12px;
}

.link-container a:hover {
    font-size: 15.4px; /* Slightly larger font size on hover */
}

.icon-container {
	margin-right: 10px;
}

/* Form and Input Styling */
.email-container, .button-container, .form-container {
    width: 100%;
    margin-bottom: 22.5px;
}

/* Email Input Container Styles */
.email-container input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding-left: 22.5px;
    font-family: 'Montserrat';
    font-size: 16px;
    line-height: 13.5px;
    color: #494949;
    border-radius: 7.5px;
    box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s;
    outline: none;
    border: none;
}

.email-container input[type="email"]:focus {
    box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.5);
}

/* Placeholder Styles */
.email-container input[type="email"]::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11.55px;
    line-height: 13.5px;
    color: #494949;
}


/* Button Container Styles */
.button-container input[type="submit"] {
    width: 100%;
    height: 45px;
    background: #161618;
    box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.25);
    border-radius: 7.5px;
    color: #FFFFFF;
    font-family: 'Montserrat';
    font-size: 14.85px;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border: solid;
    border-color: #161618;
    border-width: 1px;
}

.button-container input[type="submit"]:hover {
    background: #8fa02e00;
    color: #161618;
    border-color: #161618;
    border-width: 1px;
}

.button-group {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 300px;  /* Control the max width for button layout */
}

.button-group button {
    padding: 10px 20px;
    color: white;
    background-color: #161618; /* Dark background for buttons */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group button:hover {
    background-color: #0e0e0e;
}

@media screen and (max-width: 650px) {
    /* Adjusting the logo sizes and position */

.spam-notice {
    font-style: italic;
    font-weight: 400;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    color: rgba(60, 60, 60, 0.71);
	min-width: 300px;
}

    .logo-outer {
        display: none;
    }

    .logo-inner {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 90px;
        height: auto;
        margin: 20px;
    }

    .logo-inner img {
        width: 100%;
        height: auto;
    }

	.main-container {
        width: 80%; /* Increased from 67.5% to make the container wider */
        height: auto;
    	margin: auto;
       	padding: 12px 12px 12px 12px;  /* Increased padding for more space around the content */
        padding-top: 60px; /* Increased top padding to make more space for the logo */
	}
	
	.submain-container{
		padding-left: 32px; /* Increased padding for more space inside the containers */
		padding-right: 32px;
	}

    /* Adjust text sizes within the main container */
    .heading-container h2 {
        font-size: 33px; /* Smaller font size for headings */
        line-height: 44px; /* Adjusted line height */
    }

    .paragraph-container p, .link-container a {
        font-size: 15px; /* Smaller font size for text and links */
		padding: 0 20px; /* Increased padding for more space inside the containers */
    }

    .email-container input[type="email"], .button-container input[type="submit"], .link-container a {
        font-size: 16px; /* Smaller font size for form inputs and links */
    }

    /* Ensure that all textual elements have their margins, paddings and heights adjusted if needed */
    .form-container, .email-container, .button-container {
		width: 100%;
    }

    .email-container input[type="email"], .button-container input[type="submit"] {
        height: 50px; /* Slightly reduced height for input fields and buttons */
    }
}

