/* ==========================================================================
   BikeEscuela - Modal de Contacto Limpio y Profesional (Sin Iconos)
   ========================================================================== */

.bk-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.bk-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bk-modal-container {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 145, 211, 0.15);
    color: #f8fafc;
    position: relative;
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bk-modal-backdrop.is-open .bk-modal-container {
    transform: scale(1) translateY(0);
}

/* Encabezado */
.bk-modal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bk-modal-title-group {
    flex: 1;
}

.bk-modal-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0091d3;
    display: block;
    margin-bottom: 6px;
}

.bk-modal-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.bk-modal-subtitle {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.45;
}

.bk-modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.bk-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cuerpo y Formulario */
.bk-modal-body {
    padding: 28px 32px 32px;
}

.bk-form-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bk-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .bk-form-row-2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .bk-modal-header {
        padding: 22px 20px 16px;
    }
    .bk-modal-body {
        padding: 20px 20px 24px;
    }
}

.bk-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bk-field-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

.bk-field-req {
    color: #38bdf8;
    margin-left: 2px;
}

.bk-field-input,
.bk-field-select,
.bk-field-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.bk-field-input:focus,
.bk-field-select:focus,
.bk-field-textarea:focus {
    border-color: #0091d3;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 0 3px rgba(0, 145, 211, 0.2);
}

.bk-field-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 11px;
    padding-right: 40px;
}

.bk-field-select option {
    background-color: #0f172a;
    color: #ffffff;
    padding: 10px;
}

.bk-field-textarea {
    min-height: 105px;
    resize: vertical;
    line-height: 1.5;
}

/* Checkbox de Privacidad */
.bk-privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    user-select: none;
}

.bk-privacy-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0091d3;
    flex-shrink: 0;
}

.bk-privacy-link {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 500;
}

.bk-privacy-link:hover {
    color: #7dd3fc;
}

/* Botón de Envío */
.bk-submit-btn {
    margin-top: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0077b6 0%, #0091d3 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 145, 211, 0.3);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bk-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0088cc 0%, #00a4ee 100%);
    box-shadow: 0 6px 20px rgba(0, 145, 211, 0.45);
    transform: translateY(-1px);
}

.bk-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* Mensajes de Estado */
.bk-status-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    display: none;
    margin-bottom: 6px;
    text-align: left;
}

.bk-status-alert.is-success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.bk-status-alert.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ==========================================================================
   Soporte para Modo Claro (Light Mode)
   ========================================================================== */
body.light-mode .bk-modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
}

body.light-mode .bk-modal-container {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 145, 211, 0.1);
}

body.light-mode .bk-modal-header {
    border-bottom-color: #e2e8f0;
}

body.light-mode .bk-modal-title {
    color: #0f172a;
}

body.light-mode .bk-modal-subtitle {
    color: #64748b;
}

body.light-mode .bk-modal-close-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .bk-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.light-mode .bk-field-label {
    color: #334155;
}

body.light-mode .bk-field-input,
body.light-mode .bk-field-select,
body.light-mode .bk-field-textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .bk-field-input:focus,
body.light-mode .bk-field-select:focus,
body.light-mode .bk-field-textarea:focus {
    background: #ffffff;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.18);
}

body.light-mode .bk-field-select option {
    background-color: #ffffff;
    color: #0f172a;
}

body.light-mode .bk-privacy-group {
    color: #64748b;
}

body.light-mode .bk-privacy-link {
    color: #0077b6;
}
