/* Two-Column Professional Matte Theme for Iqure Wellness Verification Portal */

:root {
    --bg-color: #FAFAF9; /* Warm off-white background */
    --text-dark: #1E2521; /* Soft professional dark grey-black */
    --text-muted: #5C6E63;
    --matte-emerald: #1F6B43; /* Matte brand emerald green */
    --matte-emerald-hover: #154D2F;
    --matte-emerald-light: #EBF5F0;
    --matte-gold: #BCA374;
    --border-color: #DDE2DD;
    --border-focus: #1F6B43;
    --input-bg: #FFFFFF;
    --success-green: #2B7A52;
    --warning-amber: #C1852B;
    --error-red: #B54E42;
    --alert-bg: #F1F4F1;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #FAFBF9 0%, #E3EDE2 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto; /* Allow scroll when layout exceeds viewport, standard responsive practice */
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* Main Container Layout */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header Section */
.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Alert Note Box */
.alert-note-box {
    background: linear-gradient(90deg, #F0F5F2 0%, #FAFBF9 100%);
    border: 1px solid rgba(31, 107, 67, 0.08);
    border-left: 4px solid var(--matte-emerald) !important;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 30px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.alert-note-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--matte-emerald);
    letter-spacing: 0.03em;
    font-size: 0.82rem;
}

.alert-note-list li {
    line-height: 1.5;
    color: var(--text-muted);
}

.alert-note-list li strong {
    color: var(--text-dark);
}

.text-emerald {
    color: var(--matte-emerald) !important;
}

.text-gold {
    color: var(--matte-gold) !important;
}

.mb-2\.5 {
    margin-bottom: 0.65rem !important;
}

.me-2\.5 {
    margin-right: 0.65rem !important;
}

.mt-0\.5 {
    margin-top: 0.15rem !important;
}

/* Sections Headings */
.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Form Styles */
.form-group-custom {
    margin-bottom: 18px;
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-custom span.required {
    color: var(--error-red);
}

.form-label-custom span.char-counter {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-input-custom {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-dark);
    width: 100%;
    transition: all 0.2s ease;
}

.form-input-custom::placeholder {
    color: rgba(30, 37, 33, 0.35);
}

.form-input-custom:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(31, 107, 67, 0.08);
    outline: 0;
}

.form-help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

/* Monospace spacing for 8-digit unique code input */
.code-input-monospace {
    font-family: 'Outfit', monospace;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Verify Button (Light desaturated grey when disabled, solid matte green when enabled) */
.btn-verify {
    background-color: #E2E6E2 !important; /* Desaturated disabled look by default */
    border: 0;
    color: #8E9A92 !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: not-allowed;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-verify.active-btn {
    background-color: var(--matte-emerald) !important;
    color: #FFFFFF !important;
    cursor: pointer;
}

.btn-verify.active-btn:hover {
    background-color: var(--matte-emerald-hover) !important;
    transform: translateY(-0.5px);
}

/* Help link */
.help-link-container {
    margin-top: 15px;
    text-align: center;
    font-size: 0.82rem;
}

.help-link {
    color: #0d6efd;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* Instructions Columns */
.pill-buttons-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-pill {
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pill.active-pill {
    background-color: var(--matte-emerald);
    color: #FFFFFF;
    border-color: var(--matte-emerald);
}

.steps-outer-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    background-color: #FFFFFF;
}

.step-item-row {
    display: flex;
    margin-bottom: 20px;
}

.step-item-row:last-child {
    margin-bottom: 0;
}

.step-number-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #F0F3F0;
    color: var(--matte-emerald);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.step-content-body {
    flex-grow: 1;
}

.step-item-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* SVG Sticker Previews */
.sticker-preview-row {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 12px;
    margin-bottom: 8px;
}

.sticker-preview-card {
    background-color: #F6F8F5;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sticker-preview-separator {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Results Custom Card (Left Column Replacement) */
.glass-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.card-header-accent {
    width: 100%;
    height: 3px;
    background-color: var(--matte-emerald);
}

.result-icon-container {
    margin-bottom: 12px;
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
}

.success-checkmark .check-icon {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 3px solid var(--success-green);
}

.success-checkmark .check-icon .icon-line {
    height: 4px;
    background-color: var(--success-green);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    width: 14px;
    left: 10px;
    top: 28px;
    transform: rotate(45deg);
}

.success-checkmark .check-icon .icon-line.line-long {
    width: 26px;
    right: 6px;
    top: 22px;
    transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(43, 122, 82, 0.15);
    box-sizing: content-box;
    position: absolute;
    left: -3px;
    top: -3px;
    z-index: 1;
}

/* Loader */
.loader-pulse {
    width: 44px;
    height: 44px;
    position: relative;
    margin: 8px auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--matte-emerald);
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
    background-color: var(--matte-gold);
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

/* Warnings and Error Icons */
.alert-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.alert-icon-body {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
}

.bg-warning-glow {
    background: #F8F2E7;
    border: 2px solid var(--warning-amber);
}

.bg-danger-glow {
    background: #F7ECEB;
    border: 2px solid var(--error-red);
}

.result-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.result-message {
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Result Info Box */
.result-info-box {
    background-color: #FAFAFA;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--matte-emerald) !important;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-dark);
    padding: 13px;
}

.result-info-box.border-success {
    border-left-color: var(--success-green) !important;
    background-color: #EAF3EE;
}

.result-info-box.border-warning {
    border-left-color: var(--warning-amber) !important;
    background-color: #F8F2E7;
}

.result-info-box.border-danger {
    border-left-color: var(--error-red) !important;
    background-color: #F7ECEB;
}

.result-info-title {
    font-weight: 700;
}

.btn-outline-light {
    border: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    background-color: #FFFFFF;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.82rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background-color: #FAFAF9;
}

.fade-in-up {
    animation: fadeInUp 0.3s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.text-danger { color: var(--error-red) !important; }
.text-warning { color: var(--warning-amber) !important; }
.text-success { color: var(--success-green) !important; }

/* Footers */
.footer-row {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-row a {
    color: var(--text-dark);
    text-decoration: none;
}

.footer-row a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------- */
/* MOBILE RESPONSIVE ADAPTABILITY                                */
/* ------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .portal-container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .alert-note-box {
        padding: 12px 16px;
        margin-bottom: 20px;
    }
    
    .section-heading {
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    /* Reverse stacking order so instructions go below form card */
    .steps-column {
        margin-top: 30px;
    }
    
    .steps-outer-container {
        padding: 16px;
    }
    
    .sticker-preview-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sticker-preview-card svg {
        max-width: 100px;
        height: auto;
    }
}
