*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.sir-hidden {
    display: none !important;
}

.sir-age-hidden {
    display: none !important;
}

/* App Layout */
.sir-app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.sir-header {
    background: #1a365d;
    color: #fff;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sir-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sir-header-logo img {
    height: 48px;
    width: auto;
}

.sir-header-text {
    flex: 1;
}

.sir-header-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.sir-header-notice {
    font-size: 13px;
    opacity: 0.8;
    margin: 2px 0 0;
}

.sir-header-actions {
    display: flex;
    gap: 8px;
}

/* Body */
.sir-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Container */
.sir-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    flex: 1;
}

/* Section */
.sir-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8ecf1;
}

/* Nav Buttons */
.sir-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 24px;
}

/* Buttons */
.sir-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sir-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sir-btn-primary {
    background: #1a365d;
    color: #fff;
}

.sir-btn-primary:hover:not(:disabled) {
    background: #2a4a7f;
}

.sir-btn-success {
    background: #276749;
    color: #fff;
}

.sir-btn-success:hover:not(:disabled) {
    background: #2f855a;
}

.sir-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.sir-btn-outline:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.sir-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.sir-btn-canopy {
    background: #2563eb;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
}

.sir-btn-canopy:hover:not(:disabled) {
    background: #1d4ed8;
}

/* Dynamic blocks */
.sir-dynamic-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin: 20px 0;
}

.sir-dynamic-block-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Address group */
.sir-address-group {
    margin: 16px 0;
}

.sir-group-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Complete Card */
.sir-complete-card {
    text-align: center;
}

.sir-complete-icon {
    font-size: 64px;
    color: #276749;
    margin: 20px 0;
}

/* Canopy follow-up block on confirmation page */
.sir-followup {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.sir-followup-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 10px;
}

.sir-followup h2 {
    font-size: 19px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 10px;
    line-height: 1.35;
}

.sir-followup p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 20px;
}

.sir-followup .sir-btn-canopy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}

.sir-btn-canopy-lock {
    font-size: 14px;
    opacity: 0.9;
}

.sir-followup-trust {
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sir-followup-trust .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}

.sir-followup-skip {
    margin-top: 18px;
    font-size: 13px;
    color: #9ca3af;
}

.sir-followup-success-icon {
    font-size: 40px;
    color: #276749;
    margin-bottom: 8px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .sir-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sir-header-actions {
        width: 100%;
    }

    .sir-body {
        padding: 16px;
    }

    .sir-form-container {
        padding: 24px 16px;
    }

    .sir-section-title {
        font-size: 20px;
    }

    .sir-dynamic-block {
        padding: 16px;
    }
}

/* Desktop responsiveness - expand layout */
@media (min-width: 1024px) {
    .sir-body {
        max-width: 1200px;
        padding: 32px 40px;
    }

    .sir-form-container {
        padding: 48px 56px;
    }

    .sir-header-inner {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .sir-body {
        max-width: 1400px;
    }

    .sir-header-inner {
        max-width: 1400px;
    }
}

/* License number */
.sir-header-license {
    font-size: 11px;
    opacity: 0.7;
    margin: 4px 0 0;
    color: #fff;
    text-align: center;
}
