﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy-deep: #1b2a4a;
    --navy-mid: #2c3e6b;
    --navy-soft: #3d5289;
    --teal: #5ba4b5;
    --teal-light: #7ec8d8;
    --teal-pale: #b8e4ed;
    --sage: #7cb69d;
    --sage-light: #a3d4bc;
    --sage-pale: #d4ece1;
    --cream: #faf8f4;
    --cream-warm: #f5f0e8;
    --cream-dark: #ede6d8;
    --sand: #d4c9b0;
    --coral-muted: #d4735c;
    --amber-soft: #e8b44c;
    --amber-muted: #d4a03c;
    --text-dark: #2a3042;
    --text-mid: #4a5568;
    --text-light: #718096;
    --text-on-dark: #e8e6e1;
    --border-light: #ddd6c8;
    --border-mid: #c4baa8;
    --success: #5ba88a;
    --success-bg: #edf7f1;
    --error: #c75050;
    --error-bg: #fdf0f0;
    --info-bg: #eef6f9;
    --warning-bg: #fdf8ee;
    --shadow-lg: 0 8px 40px rgba(27,42,74,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --font-main: 'Segoe UI','Trebuchet MS',system-ui,-apple-system,sans-serif;
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(170deg, var(--cream) 0%, var(--cream-warm) 50%, var(--cream-dark) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    color: var(--text-on-dark);
    box-shadow: 0 2px 20px rgba(27,42,74,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.15);
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.header-subtitle {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.6);
}

.header-date {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    display: none;
}

/* ===== Main ===== */
.main-container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px 48px;
    flex: 1;
}

/* ===== Two Column Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(400px, 1.5fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ===== Image Panel ===== */
.image-panel {
    background: linear-gradient(180deg, var(--sage-pale) 0%, #c8e6c9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
}

    .image-panel::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, transparent, var(--sage-light), transparent);
    }

    .image-panel img {
        max-width: 100%;
        height: auto;
        max-height: 480px;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 24px rgba(27,42,74,0.08);
        object-fit: contain;
    }

.image-caption {
    margin-top: 20px;
    text-align: center;
    color: #2d5a42;
    font-size: 0.88rem;
    line-height: 1.5;
}

    .image-caption .caption-highlight {
        display: block;
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 4px;
        color: #1e4532;
    }

/* ===== Form Panel ===== */
.form-panel {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-light);
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-mid);
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 0.84rem;
    color: var(--text-light);
}

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 16px 0;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    border: 2px solid var(--border-mid);
    color: var(--text-light);
    background: #fff;
    transition: var(--transition);
}

.step-label {
    font-size: 0.68rem;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    border-color: var(--teal);
    color: #fff;
    background: var(--teal);
    box-shadow: 0 2px 8px rgba(91,164,181,0.25);
}

.step.active .step-label {
    color: var(--teal);
}

.step.completed .step-number {
    border-color: var(--sage);
    color: #fff;
    background: var(--sage);
}

.step.completed .step-label {
    color: var(--sage);
}

.step-connector {
    width: 36px;
    height: 2px;
    background: var(--border-mid);
    margin: 0 6px;
    border-radius: 1px;
    transition: var(--transition);
}

    .step-connector.done {
        background: var(--sage);
    }

/* ===== Form Fields ===== */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.form-label {
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-mid);
    min-width: 140px;
    text-align: right;
    flex-shrink: 0;
}

.form-value {
    font-size: 0.92rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* ===== Inputs ===== */
.txt-input {
    font-family: var(--font-main);
    font-size: 0.9rem;
    padding: 9px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    background: #fff;
    transition: var(--transition);
    width: 100%;
    max-width: 260px;
    outline: none;
}

    .txt-input:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px rgba(91,164,181,0.12);
    }

    .txt-input:disabled, .txt-input[readonly] {
        background: var(--cream);
        color: var(--text-light);
        cursor: not-allowed;
    }

    .txt-input.input-error {
        border-color: var(--error);
    }

/* ===== Buttons ===== */
.btn {
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

    .btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-soft));
    color: #fff;
}

    .btn-primary:hover:not(:disabled) {
        box-shadow: 0 3px 14px rgba(44,62,107,0.25);
        transform: translateY(-1px);
    }

.btn-success {
    background: linear-gradient(135deg, var(--sage), var(--success));
    color: #fff;
}

    .btn-success:hover:not(:disabled) {
        box-shadow: 0 3px 14px rgba(91,168,138,0.25);
        transform: translateY(-1px);
    }

.btn-secondary {
    background: var(--cream-dark);
    color: var(--text-mid);
    border: 1px solid var(--border-mid);
}

    .btn-secondary:hover:not(:disabled) {
        background: var(--sand);
    }

.btn-teal {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
}

    .btn-teal:hover:not(:disabled) {
        box-shadow: 0 3px 14px rgba(91,164,181,0.25);
        transform: translateY(-1px);
    }

.btn-amber {
    background: linear-gradient(135deg, var(--amber-soft), var(--amber-muted));
    color: var(--navy-deep);
}

    .btn-amber:hover:not(:disabled) {
        box-shadow: 0 3px 14px rgba(232,180,76,0.25);
        transform: translateY(-1px);
    }

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 11px 28px;
    font-size: 0.92rem;
}

/* ===== Checkbox ===== */
.checkbox-wrapper {
    /*background: linear-gradient(135deg, #fff8e1, #ffecb3);
            border: 1.5px solid #f0d060;
            border-radius: var(--radius-md); padding: 14px 18px;
            margin: 18px 0; display: none;*/
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 1.5px solid #f0d060;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 18px 0;
}

    .checkbox-wrapper.visible {
        display: block;
    }

    .checkbox-wrapper label {
        font-size: 0.86rem;
        font-weight: 600;
        color: #5d4037;
        cursor: pointer;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: var(--amber-muted);
        flex-shrink: 0;
    }

/* ===== CAPTCHA Section ===== */
.captcha-section {
    background: linear-gradient(135deg, var(--cream), var(--cream-warm));
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--amber-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.captcha-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.captcha-image-wrapper {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    border: 2px solid var(--navy-soft);
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .captcha-image-wrapper::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.03) 3px, rgba(255,255,255,0.03) 4px), repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(255,255,255,0.02) 5px, rgba(255,255,255,0.02) 6px);
        pointer-events: none;
    }

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--teal-light);
    text-shadow: 0 0 8px rgba(126,200,216,0.3), 2px 2px 0 rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none;
    padding: 4px 8px;
    position: relative;
    z-index: 1;
}

.btn-refresh-captcha {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1.5px solid var(--border-mid);
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}

    .btn-refresh-captcha:hover {
        border-color: var(--teal);
        color: var(--teal);
        background: var(--info-bg);
    }

    .btn-refresh-captcha::before {
        content: '';
        width: 16px;
        height: 16px;
        border: 2.5px solid currentColor;
        border-bottom-color: transparent;
        border-radius: 50%;
    }

    .btn-refresh-captcha::after {
        content: '';
        position: absolute;
        top: 8px;
        right: 9px;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 5px solid currentColor;
        transform: rotate(45deg);
    }

.captcha-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.captcha-input {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 6px;
    text-align: center;
    max-width: 180px;
    text-transform: uppercase;
}

.captcha-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 7px 16px;
    background: var(--success-bg);
    border-radius: 20px;
    border: 1px solid rgba(91,168,138,0.25);
    margin-top: 10px;
}

.captcha-error-wrap {
    margin-top: 8px;
}

/* ===== OTP Section ===== */
.passcode-section {
    /*background: linear-gradient(135deg, var(--info-bg), #f0f7fa);
            border: 1.5px solid var(--teal-pale); border-radius: var(--radius-md);
            padding: 22px; margin: 18px 0;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--info-bg), #f0f7fa);
    border: 1.5px solid var(--teal-pale);
    border-radius: var(--radius-md);
    padding: 22px;
    margin: 18px 0;
    text-align: center;
    min-height: 250px; /* optional: ensures good centering for short content */
}

    .passcode-section .section-title {
        color: var(--teal);
    }

.passcode-note {
    font-size: 0.76rem;
    color: #8b6e52;
    margin-top: 4px;
    display: block;
}

/* ===== Consumer Details Section ===== */
.consumer-details {
    background: var(--cream);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 18px;
}

    .consumer-details .section-title {
        color: var(--navy-mid);
    }

/* ===== Messages ===== */
.msg-error {
    color: var(--error);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 3px;
    display: block;
}

.msg-success {
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 600;
}

.msg-info {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 500;
}

.alert-result {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 14px;
    animation: gentle-pulse 3s ease-in-out infinite;
}

    .alert-result.success-alert {
        background: var(--success-bg);
        border: 1.5px solid rgba(91,168,138,0.3);
        color: var(--success);
    }

    .alert-result.warning-alert {
        background: var(--warning-bg);
        border: 1.5px solid rgba(212,160,60,0.3);
        color: var(--amber-muted);
    }

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(91,168,138,0.12);
    }

    50% {
        box-shadow: 0 0 16px 2px rgba(91,168,138,0.06);
    }
}

/* ===== Action Row ===== */
.action-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 20px;
    font-size: 0.76rem;
    margin-top: auto;
}

.hidden-fields {
    display: none !important;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .header-date {
        display: block;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .image-panel {
        padding: 24px 20px;
    }

        .image-panel::after {
            display: none;
        }

        .image-panel img {
            max-height: 280px;
        }
}

@media (max-width: 767px) {
    .header-inner {
        padding: 12px 16px;
    }

    .header-title {
        font-size: 1rem;
    }

    .header-logo-img {
        height: 40px;
        border-radius: 8px;
    }

    .main-container {
        margin: 16px auto;
        padding: 0 10px 24px;
    }

    .form-panel {
        padding: 20px 16px;
    }

    .panel-title {
        font-size: 1.08rem;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .form-label {
        text-align: left;
        min-width: unset;
        font-size: 0.8rem;
    }

    .txt-input {
        max-width: 100%;
    }

    .form-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .action-row {
        flex-direction: column;
    }

    .captcha-section, .passcode-section, .consumer-details {
        padding: 16px;
    }

    .captcha-code {
        font-size: 1.3rem;
        letter-spacing: 6px;
    }

    .captcha-display {
        flex-direction: column;
    }

    .captcha-input-row {
        flex-direction: column;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 3px;
        padding: 12px 6px;
    }

    .step-connector {
        width: 18px;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }

    .passcode-section .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .passcode-section .form-label {
        text-align: left;
        min-width: unset;
    }
}

@media (max-width: 400px) {
    .header-title {
        font-size: 0.88rem;
    }

    .form-panel {
        padding: 16px 12px;
    }

    .panel-title {
        font-size: 0.96rem;
    }
}

.passcode-input {
    max-width: 150px;
}

@media (max-width: 767px) {
    .passcode-input {
        max-width: 100%;
    }
}


