/* ============================================
   OCI Express - Styles Formulaire Multi-étapes
   ============================================ */

/* Page Container */
.form-page {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--background) 0%, var(--card) 50%, var(--background) 100%);
}

/* Progress Container */
.progress-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.progress-bar {
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--amber));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 20%;
}

.steps-indicators {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-indicator.active,
.step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, var(--primary), var(--amber));
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.step-indicator.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-indicator.completed .step-number::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.step-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    display: none;
}

@media (min-width: 640px) {
    .step-label {
        display: block;
    }
}

.step-indicator.active .step-label {
    color: var(--primary);
    font-weight: 500;
}

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block;
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-icon.success {
    background: hsla(160, 84%, 39%, 0.1);
    border-color: hsla(160, 84%, 39%, 0.3);
    color: var(--success);
}

.step-icon.gold {
    background: linear-gradient(135deg, var(--primary), var(--amber));
    color: var(--primary-foreground);
    box-shadow: var(--shadow-gold);
}

.step-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Parents Section */
.parents-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .parents-section {
        flex-direction: row;
    }
}

.parent-card {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.parent-card:hover {
    border-color: var(--primary);
}

.parent-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

.parent-icon-svg {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.parent-icon-svg.male {
    background: hsla(210, 70%, 50%, 0.1);
    color: hsl(210, 70%, 50%);
}

.parent-icon-svg.female {
    background: hsla(330, 70%, 50%, 0.1);
    color: hsl(330, 70%, 50%);
}

/* Grandparents Section */
.grandparents-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grandparents-section {
        flex-direction: row;
    }
}

.gp-side {
    flex: 1;
}

.gp-side-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.grandparent-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.grandparent-card:hover {
    border-color: var(--primary);
}

.grandparent-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.gp-icon-svg {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gp-icon-svg.male {
    background: hsla(210, 70%, 50%, 0.1);
    color: hsl(210, 70%, 50%);
}

.gp-icon-svg.female {
    background: hsla(330, 70%, 50%, 0.1);
    color: hsl(330, 70%, 50%);
}

/* Summary Section */
.summary-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .summary-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.summary-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.summary-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.summary-section h3 svg {
    opacity: 0.7;
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.summary-label {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--foreground);
}

/* Family Tree Visualization */
.family-tree-wrapper {
    overflow-x: auto;
    padding: 1rem;
    margin: 0 -1rem;
}

.family-tree {
    background: linear-gradient(135deg, hsl(220, 18%, 10%) 0%, hsl(220, 20%, 6%) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    min-width: 750px;
    position: relative;
    box-shadow: var(--shadow-gold);
}

.tree-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tree-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.tree-header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.tree-level {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.tree-level.grandparents-level {
    gap: 3rem;
}

.tree-couple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.couple-link {
    width: 1.5rem;
    height: 2px;
    background: var(--border);
}

.parents-link {
    width: 3rem;
}

.tree-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 100px;
    transition: all 0.3s ease;
}

.tree-person:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.tree-person.you {
    border-color: var(--primary);
    background: linear-gradient(135deg, hsla(43, 89%, 50%, 0.1), hsla(35, 95%, 55%, 0.05));
    min-width: 130px;
}

.tree-person.grandparent {
    min-width: 90px;
    padding: 0.5rem;
}

/* Arrière-grands-parents level */
.tree-level.arriere-grandparents-level {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tree-couple.agp-couple {
    gap: 0.25rem;
}

.tree-person.agp {
    min-width: 70px;
    max-width: 80px;
    padding: 0.35rem;
    font-size: 0.65rem;
}

.tree-person.agp .person-avatar {
    width: 1.5rem;
    height: 1.5rem;
}

.tree-person.agp .person-avatar svg {
    width: 14px;
    height: 14px;
}

.tree-person.agp .person-name {
    font-size: 0.5625rem;
    max-width: 65px;
}

.tree-person.agp .person-relation {
    font-size: 0.5rem;
}

.couple-link.small {
    width: 8px;
}

.tree-connectors.agp-connectors {
    gap: 5rem;
}

.person-avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
    border: 2px solid var(--border);
}

.tree-person.grandparent .person-avatar {
    width: 2rem;
    height: 2rem;
}

.tree-person.grandparent .person-avatar svg {
    width: 16px;
    height: 16px;
}

.person-avatar.male {
    border-color: hsl(210, 70%, 50%);
    background: hsla(210, 70%, 50%, 0.1);
    color: hsl(210, 70%, 50%);
}

.person-avatar.female {
    border-color: hsl(330, 70%, 50%);
    background: hsla(330, 70%, 50%, 0.1);
    color: hsl(330, 70%, 50%);
}

.person-avatar.you-avatar {
    width: 3rem;
    height: 3rem;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--amber));
    color: var(--primary-foreground);
}

.person-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.125rem;
}

.person-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--foreground);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-person.grandparent .person-name {
    font-size: 0.6875rem;
    max-width: 80px;
}

.tree-person.you .person-name {
    font-size: 0.875rem;
    max-width: 110px;
}

.person-relation {
    font-size: 0.5625rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tree-person.you .person-relation {
    font-size: 0.625rem;
    color: var(--primary);
}

/* Tree Connectors */
.tree-connectors {
    display: flex;
    justify-content: center;
    gap: 12rem;
    padding: 0.25rem 0;
}

.tree-connectors.single {
    gap: 0;
}

.connector-v {
    width: 2px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--border), var(--primary));
}

/* Tree Watermark */
.tree-watermark {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.5625rem;
    color: var(--muted-foreground);
    opacity: 0.7;
}

.tree-watermark strong {
    color: var(--primary);
    font-size: 0.625rem;
}

/* Send Section */
.send-section {
    margin-top: 2rem;
}

.send-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.send-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: hsla(43, 89%, 50%, 0.1);
    border: 1px solid hsla(43, 89%, 50%, 0.2);
    color: var(--primary);
    margin-bottom: 1rem;
}

.send-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.send-card > p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-navigation .btn:only-child {
    margin-left: auto;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: hsla(220, 20%, 4%, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-icon.success {
    background: hsla(160, 84%, 39%, 0.1);
    border-radius: 50%;
    color: var(--success);
}

.modal-icon.success svg {
    width: 2rem;
    height: 2rem;
}

.modal-icon.error {
    background: hsla(0, 72%, 51%, 0.1);
    border-radius: 50%;
    color: var(--destructive);
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Spinner */
.spinner-large {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Input Error */
.input-error {
    border-color: var(--destructive) !important;
    box-shadow: 0 0 0 2px hsla(0, 72%, 51%, 0.2) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-page {
        padding: 5rem 0 2rem;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .family-tree {
        padding: 1.5rem 1rem;
        min-width: 650px;
    }

    .tree-level.grandparents-level {
        gap: 1.5rem;
    }

    .tree-level.arriere-grandparents-level {
        gap: 0.5rem;
    }

    .tree-person.agp {
        min-width: 60px;
        max-width: 70px;
        padding: 0.25rem;
    }

    .tree-person.agp .person-name {
        font-size: 0.5rem;
        max-width: 55px;
    }

    .tree-connectors {
        gap: 8rem;
    }

    .tree-connectors.agp-connectors {
        gap: 3rem;
    }
}

/* ============================================
   STYLES CONJOINT & ENFANTS
   ============================================ */

/* Checkbox personnalisée */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: var(--primary);
    background: hsla(43, 89%, 50%, 0.05);
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 1.5rem;
    width: 1.5rem;
    min-width: 1.5rem;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary), var(--amber));
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '';
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.checkbox-label {
    font-size: 0.9375rem;
    color: var(--foreground);
    font-weight: 500;
}

/* Option Conjoint */
.conjoint-option {
    margin-top: 2rem;
}

/* Section Conjoint */
.conjoint-section {
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease;
}

.conjoint-parents-section {
    margin-top: 2rem;
    animation: slideDown 0.3s ease;
}

/* Grands-Parents du Conjoint */
.conjoint-grandparents-section {
    margin-top: 2.5rem;
    animation: slideDown 0.3s ease;
}

/* Arrière-Grands-Parents */
.arriere-grandparents-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.agp-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.agp-group-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.agp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .agp-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.grandparent-card.compact {
    padding: 1rem;
    margin-bottom: 0;
}

.grandparent-card.compact .grandparent-title {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.grandparent-card.compact .form-grid {
    gap: 0.75rem;
}

.grandparent-card.compact .input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.grandparent-card.compact .label {
    font-size: 0.75rem;
}

/* Arrière-Grands-Parents du Conjoint */
.conjoint-arriere-grandparents-section {
    margin-top: 2.5rem;
    animation: slideDown 0.3s ease;
}

/* Séparateur de section */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--primary);
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Section Enfants */
.enfants-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.enfants-question {
    margin-bottom: 1.5rem;
}

.enfants-details {
    animation: slideDown 0.3s ease;
}

.enfants-count-group {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.select-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.enfants-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enfant-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.3s ease;
}

.enfant-card:hover {
    border-color: var(--primary);
}

.enfant-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.enfant-number {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--amber));
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Badge Optionnel */
.optional-badge {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-foreground);
    font-style: italic;
}

/* Animation slide down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Résumé - sections conjoint et enfants */
.summary-conjoint,
.summary-conjoint-parents,
.summary-enfants {
    background: linear-gradient(135deg, hsla(43, 89%, 50%, 0.05), hsla(35, 95%, 55%, 0.02));
    border-color: hsla(43, 89%, 50%, 0.2);
}

.summary-conjoint h3,
.summary-conjoint-parents h3,
.summary-enfants h3 {
    color: var(--amber);
}

/* Responsive pour sections conjoint/enfants */
@media (max-width: 640px) {
    .checkbox-container {
        padding: 0.875rem 1rem;
    }

    .checkbox-label {
        font-size: 0.875rem;
    }

    .divider-text {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .enfant-card {
        padding: 1rem;
    }
}

/* Survey Modal */
.survey-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.survey-overlay.active {
    display: flex;
    opacity: 1;
}

.survey-modal {
    background: linear-gradient(135deg, #12141a 0%, #0a0c10 100%);
    border: 1px solid #2a2d35;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.survey-overlay.active .survey-modal {
    transform: translateY(0);
}

.survey-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.survey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    margin-bottom: 0.75rem;
}

.survey-header h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.survey-header p {
    color: #9ca3af;
    font-size: 0.95rem;
    margin: 0;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.survey-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #2a2d35;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.survey-radio:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.survey-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #4b5563;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.survey-radio input[type="radio"]:checked ~ .radio-mark {
    border-color: #D4AF37;
}

.survey-radio input[type="radio"]:checked ~ .radio-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D4AF37;
}

.survey-radio input[type="radio"]:checked ~ .radio-label {
    color: #fff;
}

.radio-label {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.survey-other-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}

.survey-other-container.visible {
    max-height: 150px;
    margin-bottom: 1rem;
}

.survey-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #2a2d35;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.survey-textarea:focus {
    border-color: #D4AF37;
}

.survey-textarea::placeholder {
    color: #6b7280;
}

.survey-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.survey-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: opacity 0.2s ease;
}

.survey-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.survey-skip {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.survey-skip:hover {
    color: #9ca3af;
}
