/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Exact colors matched from the attached header image */
    --sky-start: #2F5FA8; /* top: deep sky/navy blue */
    --sky-end: #3C8BD6;   /* bottom: bright sky blue */
    --sky-accent: #3C8BD6;
    --sky-light: #eaf5ff;
    --border-light: #e6edf5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Light, neutral canvas to match the guide */
    background: #f5f7fb;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 24px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Header Styles */
.header {
    /* Sky blue gradient header per guide */
    background: linear-gradient(180deg, var(--sky-start) 0%, var(--sky-end) 100%);
    color: white;
    padding: 36px;
    text-align: center;
    position: relative;
}

.iron-logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image logo replacement for carousel header */
.iron-logo-img {
    display: block;
    height: 80px;
    width: auto;
    margin: 0 auto 12px auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.address {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Progress Steps */
.progress-container {
    display: flex;
    justify-content: space-between;
    padding: 28px 40px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.step-title {
    font-size: 0.85rem;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--sky-start) 0%, var(--sky-end) 100%);
    color: white;
    border-color: var(--sky-accent);
    transform: scale(1.1);
}

.progress-step.active .step-title {
    color: var(--sky-accent);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.progress-step.completed .step-title {
    color: #28a745;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 36px 40px;
    min-height: 500px;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.step-description {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 28px;
    padding: 24px;
    background: #ffffff;
    border-radius: 14px;
    border-left: 4px solid #667eea;
    box-shadow: 0 6px 18px rgba(22, 34, 66, 0.06);
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.section-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

/* Professional select styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%233C8BD6" viewBox="0 0 16 16"><path d="M3.204 5.5a.5.5 0 0 1 .707-.003L8 9.086l4.089-3.589a.5.5 0 1 1 .658.753l-4.41 3.872a.5.5 0 0 1-.654 0L3.207 6.25a.5.5 0 0 1-.003-.75z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select:disabled {
    background-color: #f8f9fa;
    border-color: #e6edf5;
    color: #9aa4b2;
    cursor: not-allowed;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--sky-accent);
    box-shadow: 0 0 0 3px rgba(78, 166, 255, 0.12);
    transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: var(--sky-accent);
}

/* Checkbox Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-group:hover {
    border-color: var(--sky-accent);
    background: #f0f8ff; /* aliceblue */
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--sky-accent);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.declaration-checkbox {
    margin: 20px 0;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
}

.declaration-checkbox label {
    margin-left: 10px;
    font-weight: 600;
    color: #856404;
}

/* Declaration Text */
.declaration-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--sky-accent);
}

.declaration-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

/* Error Messages */
.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.error.show {
    display: block;
}

/* Validation Summary */
.validation-summary {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #b91c1c;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 18px 40px 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.validation-summary ul { margin: 8px 0 0 18px; }
.validation-summary.show { display: block !important; }

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    display: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.success-message.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    padding: 28px 40px;
    background: #ffffff;
    border-top: 1px solid #e6edf5;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sky-start) 0%, var(--sky-end) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 166, 255, 0.28);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .progress-container {
        padding: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .progress-step {
        flex: none;
        min-width: 80px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .form-step {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .navigation-buttons {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .header {
        padding: 20px;
    }

    .iron-logo {
        font-size: 2rem;
    }

    .header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .progress-container::before {
        display: none;
    }

    .progress-step {
        min-width: 60px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-title {
        font-size: 0.7rem;
    }

    .form-section {
        padding: 15px;
    }

    .step-content h2 {
        font-size: 1.5rem;
    }
}

/* Terms and Conditions Styles */
.terms-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.terms-column {
    padding-right: 15px;
}

.terms-column h4 {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-column h4:first-child {
    margin-top: 0;
}

.terms-column p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #555;
    text-align: justify;
}

/* Responsive Terms and Conditions */
@media (max-width: 768px) {
    .terms-content {
        grid-template-columns: 1fr;
        gap: 20px;
        max-height: 300px;
    }
    
    .terms-column {
        padding-right: 0;
    }
    
    .terms-column h4 {
        font-size: 0.85rem;
    }
    
    .terms-column p {
         font-size: 0.75rem;
     }
 }

/* Checklist of Requirements Styles */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.checklist-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-item label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    cursor: pointer;
}

/* Internal Use Section Styles */
.internal-use {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin-top: 20px;
}

.internal-use h3 {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Checklist and Internal Use */
@media (max-width: 768px) {
    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-item label {
        font-size: 0.85rem;
    }
    
    .internal-use h3 {
        font-size: 1rem;
    }
}

/* Enhanced error styling */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
    background-color: #fdf2f2 !important;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success styling for valid fields */
.valid {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2) !important;
}

/* Enhanced progress indicators */
.progress-step {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-step:hover {
    transform: scale(1.05);
}

.progress-step.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.progress-step.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* Enhanced form inputs */
input, select, textarea {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced buttons */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    width: 100%;
}
.action-bar .actions-left { display:flex; align-items:center; gap:14px; }
.action-bar .actions-right { display:flex; align-items:center; }
.action-bar .site-link { color:#1e6ed8; text-decoration:none; font-weight:600; font-size:13px; }
.action-bar .site-link:hover { text-decoration: underline; }

.action-bar .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: #f9fbff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    text-transform: none;
    letter-spacing: 0;
}

.action-bar .btn .icon { display: inline-block; color: #5b6677; font-size: 13.5px; }

.action-bar .btn-save {
    background: linear-gradient(180deg, var(--sky-start), var(--sky-end));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(60, 139, 214, 0.25);
}

.action-bar .btn-print,
.action-bar .btn-download {
    background: #ffffff;
    border-color: #dbe4ee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.action-bar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.action-bar .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 139, 214, 0.25);
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0 20px 0;
}

.site-footer a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .action-bar { flex-direction: column; gap: 10px; }
    .action-bar .actions-left { width:100%; flex-direction: column; }
    .action-bar .btn { width: 100%; justify-content: center; }
    .action-bar .actions-right { width:100%; justify-content: center; }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Step completion indicators */
.step-status {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.step-status.completed {
    background-color: #27ae60;
}

.step-status.active {
    background-color: #3498db;
    animation: pulse 2s infinite;
}

/* Form group enhancements */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

/* File input styling */
input[type="file"] {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

input[type="file"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Checkbox and radio styling */
input[type="checkbox"], input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* Navigation improvements */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
}

.navigation-buttons .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #ecf0f1;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-step {
        flex: 1;
        min-width: 40px;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Footer */
.site-footer {
    width: 100%;
    padding: 16px 12px;
    margin-top: 24px;
    border-top: 1px solid #eaeaea;
    color: #333;
    text-align: center;
    font-size: 14px;
}
.site-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

/* Center footer on mobile */
@media (max-width: 768px) {
    .site-footer {
        text-align: center;
    }
}
/* Success Modal Overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}
.success-overlay.show { display: flex; }
.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
}
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9f2ff;
    border: 1px solid #cfe2ff;
    color: #1e6ed8;
    font-size: 32px;
    line-height: 1;
}
.success-title { font-size: 24px; font-weight: 700; color: #1f2937; margin: 8px 0 12px; }
.success-ref { font-size: 14px; color: #4b5563; margin-bottom: 20px; }
.success-actions { margin-top: 8px; }
.success-btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(180deg, #3777c8 0%, #2b62a7 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
/* New design layout primitives */
.content { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.error-banner { background: #fff1f2; border: 1px solid #fecdd3; color: #b91c1c; padding: 14px 16px; border-radius: 10px; margin: 18px 0; }
.error-title { font-weight: 700; margin-bottom: 6px; }
.error-list { margin-left: 18px; }
.note { color: #6b7280; font-size: 13px; margin: 10px 0 16px; }

.pref-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #ffffff; border: 1px solid var(--border-light); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(22, 34, 66, 0.06); }
.pref-left { display: flex; flex-direction: column; gap: 2px; }
.pref-label { font-weight: 700; color: #1f2937; font-size: 14px; }
.pref-desc { color: #6b7280; font-size: 12.5px; }
.pref-options { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pref-option { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-light); border-radius: 999px; background: #f9fbff; color: #1f2937; font-weight: 600; font-size: 13px; }
.pref-option input { width: 16px; height: 16px; accent-color: var(--sky-accent); }

.step-panel { background: #ffffff; border: 1px solid var(--border-light); border-radius: 14px; padding: 18px; box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06); margin-bottom: 18px; }
.section { margin-bottom: 18px; }
.section-title { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; }
.label { font-weight: 600; color: #2c3e50; margin-bottom: 6px; font-size: 13.5px; }
.input, .select { padding: 10px 14px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 14px; transition: all 0.2s ease; background: #ffffff; color: #2c3e50; }
.input:focus, .select:focus { outline: none; border-color: var(--sky-accent); box-shadow: 0 0 0 3px rgba(78, 166, 255, 0.12); transform: translateY(-1px); }

.invest-pref { display: flex; flex-direction: column; gap: 12px; }
.pref-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px dashed #e6edf5; border-radius: 10px; background: #fbfdff; }
.pref-cat { font-weight: 700; color: #1f2937; min-width: 140px; }
.pref-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e6edf5; border-radius: 999px; background: #ffffff; color: #1f2937; font-weight: 600; font-size: 13px; }
.pref-item input { width: 16px; height: 16px; accent-color: var(--sky-accent); }
.pref-other { width: 220px; }

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pref-bar { flex-direction: column; align-items: flex-start; }
  .pref-row { flex-direction: column; }
  .pref-cat { min-width: 0; }
  .content { padding: 0 12px; }
}
.actions { display:flex; justify-content: flex-end; align-items:center; gap:12px; padding: 20px 40px; background:#ffffff; border-top:1px solid var(--border-light); }
.actions button { padding: 10px 16px; border-radius: 10px; border:1px solid #dbe4ee; background:#ffffff; color:#1f2937; font-weight:600; cursor:pointer; transition: all 0.2s ease; }
.actions button:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.actions .primary { background: linear-gradient(180deg, var(--sky-start), var(--sky-end)); color:#ffffff; border-color: transparent; box-shadow: 0 8px 20px rgba(60,139,214,0.25); }
.actions .primary:hover { box-shadow: 0 10px 24px rgba(60,139,214,0.32); }
@media (max-width: 768px) {
  .actions { padding: 16px 20px; gap:10px; }
  .actions { flex-direction: column; }
  .actions button { width:100%; }
}
.success-btn:hover { opacity: 0.95; }

/* Small data source hint under selects */
.data-source {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}
.data-source a {
    color: #1e6ed8;
    text-decoration: none;
}
.data-source a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.loading-select {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Cpath d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="%233C8BD6" stroke="none"%3E%3CanimateTransform attributeName="transform" type="rotate" dur="1s" repeatCount="indefinite" keyTimes="0;1" values="0 50 51;360 50 51"%3E%3C/animateTransform%3E%3C/path%3E%3C/svg%3E');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}
