@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600\u0026family=Raleway:wght@600;700\u0026family=Roboto:wght@700;800\u0026display=swap');

/* ==========================================================================
   Infinex Design System
   ========================================================================== */

:root {
    --inf-blue: #0047BA;
    --inf-purple: #993DBB;
    --inf-gradient: linear-gradient(40deg, #0047BA 0%, #993DBB 100%);
    --inf-text-title: #2C3E50;
    --inf-gray-text: #666666;
    --inf-border: #dae1e7;
    --inf-input-shadow: rgba(0, 71, 186, 0.13) 0px 1px 4px 0px;
}

.form-container {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow: hidden;
    /* For header border radius */
}

.form-header.branding-gradient {
    background: var(--inf-gradient);
    text-align: center;
    padding: 50px 40px;
    color: white;
}

.form-logo {
    max-width: 220px;
    margin-bottom: 25px;
}

.form-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    margin: 0 0 10px 0;
    color: white;
    font-weight: 800;
}

.form-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--inf-text-title);
}

.info-icon {
    display: inline-block;
    color: #bcc6d2;
    margin-left: 5px;
    cursor: help;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--inf-border);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #333;
    box-shadow: var(--inf-input-shadow);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--inf-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.1);
    outline: none;
}

/* Input Prefix for Money */
.input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix span {
    position: absolute;
    left: 16px;
    color: var(--inf-gray-text);
    font-size: 16px;
}

.input-prefix input {
    padding-left: 32px !important;
}

.form-notice {
    color: #ff3333;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--inf-border);
}

.checkbox-group a {
    color: var(--inf-blue);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--inf-gradient);
    font-family: 'Raleway', sans-serif;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 71, 186, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 186, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-footer-notice {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 25px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-container {
        margin: 20px 10px;
    }

    .form-header.branding-gradient {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 26px;
    }

    form {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   AJAX Response States
   ========================================================================== */

.branding-gradient {
    background: var(--inf-gradient) !important;
}

.form-response h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin-top: 0;
}

.form-response p {
    font-weight: 300;
}

#countdown {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}