/* ===========================================================
   PROJECT: Allstate Foundation Survivor Support Program Registration
   AUTHOR: Liftoff Commerce / GF
   DATE: 09.05.25
   VERSION: 1.3
   DESCRIPTION: Landing page styles program registration with footer
   DEPENDENCIES: Assets Record Set (AllstateSans font family, SVG assets) 
   ========================================================== */

/* ===========================================================
   FONT DECLARATIONS
   ========================================================== */

@font-face {
    font-family: 'AllstateSans';
    src: url('/files/assets/AllstateSans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'AllstateSans';
    src: url('/files/assets/AllstateSans-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'AllstateSans';
    src: url('/files/assets/AllstateSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* ===========================================================
   GLOBAL STYLES
   ========================================================== */

* {
    font-family: 'AllstateSans', sans-serif;
        font-weight: 300;
}

body {
    background-color: #f3f6f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'AllstateSans', sans-serif;
    font-weight: 700;
}

.container {
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================================
   HEADER STYLES
   ========================================================== */

.header {
    background: #0E1941;
    color: white;
    position: relative;
    overflow: hidden;
}

.header-top {
    background: #0E1941;
    padding: 20px 20px 0;
}

.header-echo {
    height: 32px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: url('/files/assets/Echo full.svg') no-repeat;
    background-position: center;
    background-repeat: no-repeat;
margin-left: -65%;
    width: 225%;
    padding: 0;
    box-sizing: border-box;
    background-size: auto;
    left: -29%;
    background-color: #45bce5; 

   
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 33%);
}

.header-content {
    background: #0033a0;
    padding: 40px 20px 110px;
    margin-top: -22px;
}

.header h1 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.3;
    color: #fff;
}

.header p {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* ===========================================================
   FORM STYLES
   ========================================================== */

.form-container {
    background: white;
    margin: -75px auto 40px;
    width: 75%;
    padding: 40px;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.optional {
    color: #666;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 12px;
    border: 2px solid #d1d5db;
    font-size: 14px;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea {
    min-height: 100px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.error {
    border-color: #dc2626 !important;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

input[type="checkbox"].error {
    border-color: #dc2626 !important;
    border-width: 2px !important;
}

/* ===========================================================
   CHECKBOX STYLES
   ========================================================== */

.checkbox-container {
    display: flex;
    align-items: center;
    padding-top: 25px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 8px;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 0;
}

input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    position: relative !important;
    cursor: pointer !important;
    background: white !important;
}

input[type="checkbox"]:checked {
    accent-color: #0e1941;
    background-color: #0e1941 !important;
    border-color: #0e1941 !important;
}

input[type="checkbox"]:checked::after {
    content: '✓' !important;
    position: absolute !important;
    left: 2px !important;
    top: -2px !important;
    color: #45bce5 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: block !important;
}

/* ===========================================================
   BUTTON STYLES
   ========================================================== */

.submit-btn {
    background: #d699ff;
    border: 2px solid #d699ff;
    color: #0e1941 !important;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background: white !important;
    color: #0E1941 !important;
    transform: translateY(1px);
}

.submit-btn a:link {
    color: white !important;
}

/* ===========================================================
   FOOTER STYLES
   ========================================================== */

.footer {
    background: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.social-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.connect-text {
    font-size: 14px;
    font-weight: 500;
    color: #0e194c;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #0E1941;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #0033a0;
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav a {
    color: #0033a0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0033a0;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 5px;
    text-align: right;
}

.copyright {
    color: #666;
    font-size: 10px;
    margin: 0;
    padding-top: 15px;
}

/* ===========================================================
   THANK YOU PAGE STYLES
   ========================================================== */

.thank-you-container {
    background: white;
    margin: -40px auto 40px;
    max-width: 100%;
    padding: 40px;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.thank-you-content {
    word-break: break-word;
    margin-bottom: 40px;
}

.thank-you-content h1 {
    font-size: 32px;
    font-weight: 200 !important;
    margin-bottom: 30px;
    color: #0E1941;
    line-height: 1.3;
}

.thank-you-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #2F3847;
    margin-bottom: 20px;
    font-weight: 300;
}

.resources-list {
    margin: 20px 0 30px;
}

.resources-list a, a.mailto {
    display: block;
    color: #9232E2;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    padding-right: 20px;
    font-weight: 600;
}

.resources-list a:hover, a.mailto:hover {
    text-decoration: underline;
}

.logo-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-sidebar img {
    max-width: 200px;
    width: 100%;
}

.contact {
    margin-bottom: 3rem;
}

/* ===========================================================
   MEDIA QUERIES
   ========================================================== */

@media (min-width: 2001px) {
    .header-echo {
        margin-left: -69%;
    }
}

@media (min-width: 1450px) and (max-width: 2000px) {
    .header-echo {
        margin-left: -68%;
    }
}

@media (min-width: 1080px) and (max-width:1449px) {
    .header-echo {
        margin-left: -67%;
    }
}


@media (min-width: 770px) and (max-width: 1079px) {
    .header-echo {
        margin-left: -66%;
    }
}

@media (min-width: 501px) and (max-width: 769px) {
    .header-echo {
        margin-left: -126%;
        width: 350%;
    }
}

@media (max-width: 500px) {
    .header-echo {
        margin-left: -121%;
        width: 350%;
    }
}

@media (max-width: 1050px) {
    .thank-you-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        margin: -20px 20px 40px;
        gap: 30px;
    }
    
    .thank-you-content h1 {
        font-size: 28px;
    }

}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: -75px auto 40px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 15px;
    }

    
    .logo {
        margin-bottom: 16px;
    }

    /* Footer mobile styles */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-right {
        align-items: center;
    }

    .social-section {
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 15px;
    }

    .footer-nav a {
        font-size: 13px;
    }
}

@media (max-width: 530px) {
    .thank-you-container {
        padding: 0;
        margin: 0;
    }

    .header-content .container {
        width: 100%;
    }

    .form-container {
        width: 95% !important;
    }
}