/**
 * DSC Form Builder - Estilos Unificados
 *
 * CENTRALIZADO con dsc-admin-otp v1.6.x
 * Incluye estilos para:
 * - Pantalla de carga (verificacion auth)
 * - Formulario dinamico
 * - Componentes compartidos
 *
 * @package DSC_Form_Builder
 * @since 1.1.0
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */
:root {
    --color-primary: #00a99d;
    --color-primary-dark: #008f85;
    --color-primary-light: #e6f7f6;
    --color-secondary: #f5a623;
    --color-error: #e74c3c;
    --color-success: #27ae60;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-bg: #f5f5f5;
    --color-white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset y Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dsc-form-page {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--color-text);
}

/* ==========================================================================
   Animaciones
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   Pantalla de Carga (Verificacion de Autenticacion)
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* ==========================================================================
   Info del Usuario Autenticado
   ========================================================================== */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--color-primary-light);
    border-radius: var(--border-radius);
}

.user-email {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.logout-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.logout-link:hover {
    background: var(--color-primary);
    color: white;
}

/* Input pre-llenado (readonly) */
.form-input.prefilled {
    background: var(--color-bg);
    color: var(--color-text-light);
}

/* ==========================================================================
   Campos Verificados (readonly desde perfil)
   ========================================================================== */
.form-input.verified-field {
    background: #f0f9f8;
    border-color: var(--color-primary);
    border-width: 1.5px;
    color: var(--color-text);
    cursor: not-allowed;
}

.form-input.verified-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

/* Badge de verificado en el label */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    background: #e8f5f3;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    vertical-align: middle;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-primary);
}

/* Texto de ayuda para campos verificados */
.field-help.verified-help {
    color: var(--color-primary);
    font-style: italic;
    margin-top: 6px;
}

/* ==========================================================================
   Modal de Autenticación (legacy - puede eliminarse)
   ========================================================================== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.auth-header {
    background: var(--color-white);
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.auth-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
}

.auth-body {
    padding: 30px;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    background: var(--color-bg);
    font-size: 12px;
    color: var(--color-text-light);
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Vistas de autenticación */
.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.auth-view.hiding {
    animation: fadeOut 0.2s ease forwards;
}

/* Selector de opciones */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-option-btn {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
}

.auth-option-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.auth-option-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.auth-option-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-option-text p {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Botón volver */
.auth-back {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.auth-back:hover {
    color: var(--color-primary);
}

.auth-back svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Links de autenticación */
.auth-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Formularios - Estilos Compartidos
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
    font-family: var(--font-family);
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-input.error {
    border-color: var(--color-error);
    animation: shake 0.5s ease;
}

.form-input::placeholder {
    color: #999;
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--color-bg);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-error {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 6px;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 6px;
    display: block;
}

.char-counter {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: right;
    display: block;
    margin-top: 4px;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary-light);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    width: auto;
}

.btn-link:hover {
    color: var(--color-primary-dark);
}

/* Loading spinner */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Password Toggle
   ========================================================================== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 5px;
}

.password-toggle:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   OTP Inputs
   ========================================================================== */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.otp-input.filled {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.otp-input.error {
    border-color: var(--color-error);
    background: #fdeaea;
}

.otp-info {
    text-align: center;
    margin-bottom: 20px;
}

.otp-info p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.otp-info strong {
    color: var(--color-text);
}

.otp-resend {
    text-align: center;
    margin-top: 20px;
}

.otp-timer {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Checkbox y Radio
   ========================================================================== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--color-primary);
}

/* Grupo de checkboxes múltiples */
.checkbox-group-multi {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-option input,
.radio-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.checkbox-label-text,
.radio-label {
    font-size: 14px;
    color: var(--color-text);
}

/* Radio group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scale group */
.scale-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scale-option input {
    display: none;
}

.scale-value {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.scale-option:hover .scale-value {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.scale-option input:checked + .scale-value {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 5px;
}

/* ==========================================================================
   Alertas
   ========================================================================== */
.alert {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fdeaea;
    color: var(--color-error);
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e8f5e9;
    color: var(--color-success);
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid #b2dfdb;
}

/* ==========================================================================
   Contenedor del Formulario
   ========================================================================== */
.form-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.form-container {
    width: 100%;
    max-width: 900px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

/* En pantallas muy grandes, ocupar más espacio */
@media (min-width: 1200px) {
    .form-container {
        max-width: 1000px;
    }
}

.form-header {
    background: var(--color-white);
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.form-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.form-description {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.dynamic-form {
    padding: 30px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.form-footer {
    text-align: center;
    padding: 20px;
    background: var(--color-bg);
    font-size: 12px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Barra de Progreso
   ========================================================================== */
.progress-bar-container {
    padding: 15px 30px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */
.form-input:focus-visible,
.btn:focus-visible,
.auth-option-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .auth-container,
    .form-container {
        border-radius: 12px;
    }

    .auth-header,
    .form-header {
        padding: 25px 20px 15px;
    }

    .auth-body,
    .dynamic-form {
        padding: 20px;
    }

    .auth-logo,
    .form-logo {
        max-width: 150px;
    }

    .auth-title,
    .form-title {
        font-size: 20px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }

    .scale-value {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .scale-group {
        gap: 5px;
    }
}

@media (max-width: 360px) {
    .auth-header,
    .form-header {
        padding: 20px 15px;
    }

    .auth-body,
    .dynamic-form {
        padding: 15px;
    }

    .auth-logo,
    .form-logo {
        max-width: 130px;
    }

    .auth-title,
    .form-title {
        font-size: 18px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .otp-container {
        gap: 6px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
    body.dsc-form-page {
        background: white;
    }

    .auth-modal {
        display: none !important;
    }

    .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .btn,
    .form-footer {
        display: none;
    }
}

/* ==========================================================================
   Info blocks (v1.10.0) — Bloques de texto entre preguntas
   ========================================================================== */
.form-info-block,
.dsc-form-info-block {
    margin: 30px 0 20px;
    padding: 20px 24px;
    background: var(--color-primary-light, #e6f7f6);
    border-left: 4px solid var(--color-primary, #00a99d);
    border-radius: var(--border-radius, 8px);
}

.form-info-block:first-child,
.dsc-form-info-block:first-child {
    margin-top: 0;
}

.form-info-title,
.dsc-form-info-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-dark, #008f85);
    line-height: 1.3;
}

.form-info-content,
.dsc-form-info-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text, #333);
}

.form-info-content p,
.dsc-form-info-content p {
    margin: 0 0 10px;
}

.form-info-content p:last-child,
.dsc-form-info-content p:last-child {
    margin-bottom: 0;
}

.form-info-content a,
.dsc-form-info-content a {
    color: var(--color-primary, #00a99d);
    text-decoration: underline;
}

.form-info-content ul,
.form-info-content ol,
.dsc-form-info-content ul,
.dsc-form-info-content ol {
    margin: 10px 0 10px 20px;
}

.form-info-content strong,
.dsc-form-info-content strong {
    color: var(--color-text, #333);
    font-weight: 600;
}

/* ========================================================================
   PANTALLA: RESPUESTA YA REGISTRADA (v2.0.2)
   Reemplaza el alert genérico cuando el backend responde 409 (duplicado).
   ======================================================================== */
.dsc-duplicate-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #00a99d 0%, #008f85 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dsc-duplicate-screen[style*="display: flex"],
.dsc-duplicate-screen[style*="display:flex"] {
    display: flex !important;
}

.dsc-duplicate-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: dscDuplicateFadeIn 0.4s ease-out;
}

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

.dsc-duplicate-icon {
    display: inline-flex;
    margin-bottom: 24px;
}

.dsc-duplicate-icon svg {
    display: block;
}

.dsc-duplicate-title {
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.dsc-duplicate-message {
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 14px;
}

.dsc-duplicate-link {
    color: #00a99d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.dsc-duplicate-link:hover,
.dsc-duplicate-link:focus {
    color: #008f85;
    text-decoration: underline;
}

/* ========================================================================
   BADGE: USUARIO RECONOCIDO (v2.0.3)
   Aparece tras un lookup exitoso de email contra wp_users.
   ======================================================================== */
.dsc-user-recognized {
    background: linear-gradient(135deg, #E8F8F6 0%, #d5f1ed 100%);
    border-left: 4px solid #00a99d;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 169, 157, 0.08);
    animation: dscBadgeSlideIn 0.35s ease-out;
}

.dsc-user-recognized-icon {
    flex: 0 0 28px;
    height: 28px;
    background: #00a99d;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.dsc-user-recognized-text strong {
    color: #00a99d;
    font-weight: 700;
}

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

/* Highlight breve cuando un campo se prellena automáticamente */
.form-input.dsc-prefilled {
    background-color: #E8F8F6 !important;
    border-color: #00a99d !important;
    transition: background-color 2.4s ease, border-color 2.4s ease;
}

.dsc-duplicate-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.dsc-duplicate-back-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dsc-duplicate-back-link:hover,
.dsc-duplicate-back-link:focus {
    color: #00a99d;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .dsc-duplicate-card {
        padding: 36px 24px;
        border-radius: 12px;
    }
    .dsc-duplicate-title {
        font-size: 22px;
    }
    .dsc-duplicate-message {
        font-size: 14px;
    }
}
