@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: radial-gradient(31.37% 31.37% at 9.2% 68.63%, rgba(0, 200, 191, 0.0795) 0%, rgba(6, 16, 25, 0) 100%), radial-gradient(32.73% 32.73% at 87.26% 49.95%, rgba(0, 200, 191, 0.0795) 0%, rgba(6, 16, 25, 0) 100%), #061019;
    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;
    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: linear-gradient(90deg, #00C9C0 0%, #00668C 100%);
    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', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    color: #FFFFFF;
}

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

}

.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: #FFFFFF; /* 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(255, 255, 255, 0.7);
    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: #000000; /* Dark text color for visibility */
    background-color: transparent;
    border: 1px solid #000000; /* Solid black border */
    margin-left: 0;
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions for hover effects */
}

#sendAgainButton:hover {
    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: #000000; /* Dark background color */
    margin-right: 0;
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions for hover effects */
}

#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: 20px;
    left: 20px;
}

.logo-outer img {
    width: 60px;
    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 */
}

.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: 430px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    background-color: rgba(250, 249, 246, 0.16);
    border-radius: 8px;
    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: 53px;
}


.heading-container h2 {
    font-weight: 600;
    font-size: 41px;
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 4px;
}

.paragraph-container p {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: rgb(255, 255, 255, 0.55);
    margin-top: 4px;
    margin-bottom: 0;
    text-align: center;
}

.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: #000000;
    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 */
    font-size: 15px;
    line-height: 12px;
}

.link-container a:hover {
    font-size: 16px; /* 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: 23px;
}

/* Email Input Container Styles */
.email-container input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding-left: 23px;
    font-family: 'Montserrat', sans-serif;
    line-height: 14px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    outline: none;
    border: 1px solid rgba(250, 249, 246, 0.3);
    font-size: 14px;
    background-color: #00000000;
    color: #FFFFFF;
}

.email-container input[type="email"]:focus {
    box-shadow: 0 0 8px 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: 13px;
    line-height: 16px;
    color: rgba(250, 249, 246, 0.3);
}


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

.button-container input[type="submit"]:hover {
    background: #8fa02e00;
    color: #000000;
    border-color: #000000;
    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: #000000; /* 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: 60px;
        height: auto;
    }

    .main-container {
        width: 80%; /* Increased from 67.5% to make the container wider */
        height: auto;
        margin: auto;
        padding: 60px 12px 12px;
    }

    .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 */
    }
}

