/* Livin Popayán Booking Form - Brand Identity Styles */
:root {
    /* Livin Popayán Official Color Palette */
    
    /* PRIMARY COLORS (Main Brand Colors) */
    --brand-teal: #307081; /* Azul verdoso principal */
    --brand-yellow: #ffcf02; /* Amarillo vibrante principal */
    --brand-gray: #878787; /* Gris medio principal */
    
    /* COMPLEMENTARY COLORS */
    --brand-beige: #a68868; /* Beige/café claro */
    --brand-gold: #eec067; /* Amarillo dorado */
    --brand-blue-gray: #a4b5c4; /* Azul gris claro */
    --brand-dark-gray: #3c3c3b; /* Gris oscuro */
    --brand-navy: #191d37; /* Azul marino oscuro */
    
    /* SEMANTIC MAPPING */
    --primary-color: var(--brand-teal); /* Color principal para elementos importantes */
    --secondary-color: var(--brand-yellow); /* Amarillo para elementos secundarios */
    --accent-color: var(--brand-gold); /* Dorado para acentos */
    --neutral-color: var(--brand-gray); /* Gris para elementos neutros */
    
    /* TEXT COLORS */
    --text-primary: var(--brand-navy); /* Azul marino para texto principal */
    --text-secondary: var(--brand-dark-gray); /* Gris oscuro para texto secundario */
    --text-light: var(--brand-gray); /* Gris medio para texto auxiliar */
    --text-white: #FFFFFF; /* Blanco para texto en fondos oscuros */
    
    /* BACKGROUND COLORS */
    --background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); /* Fondo muy claro, sin café */
    --card-background: #FFFFFF; /* Blanco puro para tarjetas */
    --section-background: #FEFEFE; /* Blanco con toque muy suave */
    --light-background: rgba(48, 112, 129, 0.03); /* Azul verdoso muy claro en lugar de beige */
    
    /* BORDER AND INTERACTIVE */
    --border-color: var(--brand-blue-gray); /* Azul gris para bordes */
    --border-focus: var(--brand-teal); /* Azul verdoso para focus */
    --border-success: var(--brand-teal); /* Azul verdoso para éxito */
    
    /* STATUS COLORS */
    --error-color: #e74c3c; /* Rojo para errores */
    --success-color: var(--brand-teal); /* Azul verdoso para éxito */
    --warning-color: var(--brand-yellow); /* Amarillo para advertencias */
    --info-color: var(--brand-blue-gray); /* Azul gris para información */
    
    /* SHADOWS */
    --shadow-light: 0 4px 20px rgba(48, 112, 129, 0.1); /* Sombra azul verdoso suave */
    --shadow: 0 8px 32px rgba(48, 112, 129, 0.15); /* Sombra azul verdoso media */
    --shadow-hover: 0 12px 40px rgba(48, 112, 129, 0.2); /* Sombra azul verdoso fuerte */
    --shadow-yellow: 0 4px 20px rgba(255, 207, 2, 0.25); /* Sombra amarilla */
}

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

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

/* Brand Header Styles */
.booking-header {
    text-align: center;
    margin-bottom: 0;
    padding: 2.5rem 2rem;
    background: #FFFFFF; /* Fondo blanco puro para que resalte el logo */
    border-bottom: 4px solid var(--brand-teal);
    position: relative;
    overflow: hidden;
}

.booking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(48, 112, 129, 0.02) 20%, 
        rgba(238, 192, 103, 0.015) 40%, /* Dorado muy sutil */
        rgba(166, 136, 104, 0.01) 60%, /* Beige ultra sutil */
        rgba(255, 207, 2, 0.02) 80%, 
        transparent 100%);
    pointer-events: none;
}

.booking-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
    position: relative;
    z-index: 2;
}

.booking-header .brand-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 2;
}

.brand-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.main-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(48, 112, 129, 0.2));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* Estilos de .brand-icon y .brand-icon-img eliminados - solo usamos logo principal */

@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(196, 155, 124, 0.3));
    }
    50% { 
        transform: scale(1.08);
        filter: drop-shadow(0 6px 12px rgba(196, 155, 124, 0.4));
    }
}

.booking-header h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(196, 155, 124, 0.2);
    position: relative;
    z-index: 2;
}

.booking-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Form Content */
.form-content {
    padding: 2.5rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(48, 112, 129, 0.01) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(196, 155, 124, 0.08);
}

.form-section h2 {
    color: var(--primary-orange);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.form-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-gold) 100%); /* Teal a dorado */
    border-radius: 2px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Input Styles */
.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--card-background);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(48, 112, 129, 0.15), 0 0 0 4px rgba(166, 136, 104, 0.08); /* Doble sombra: teal + beige sutil */
    background: var(--light-background);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Select Enhancement */
.property-select {
    position: relative;
}

.property-select select {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="rgba(196,155,124,1)"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* Property Info Display */
.property-info {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(48, 112, 129, 0.05) 0%, rgba(255, 207, 2, 0.03) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--brand-teal);
}

.property-info h4 {
    color: var(--brand-teal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Date Info */
.date-info {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 207, 2, 0.03) 0%, rgba(48, 112, 129, 0.03) 100%);
    border-radius: 16px;
    border: 2px solid var(--brand-yellow);
    box-shadow: var(--shadow-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    text-align: center;
}

.info-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-item .value {
    display: block;
    font-size: 1.1rem;
    color: var(--brand-teal);
    font-weight: 600;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label:hover {
    background: rgba(48, 112, 129, 0.05); /* Azul verdoso muy claro */
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-background);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--brand-gold) 100%); /* Gradiente teal a dorado */
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(238, 192, 103, 0.3); /* Sombra dorada sutil */
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Commitments Section */
.commitments-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.commitment-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.commitment-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(196, 155, 124, 0.1);
}

.commitment-checkbox {
    margin: 0;
    padding: 0;
}

.commitment-content {
    flex: 1;
}

.commitment-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.commitment-content small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* File Upload Styles */
.file-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--card-background);
    position: relative;
}

.file-upload:hover {
    border-color: var(--brand-teal);
    background: rgba(48, 112, 129, 0.02); /* Azul verdoso muy suave */
}

.file-upload.required {
    border-color: var(--brand-teal);
    background: linear-gradient(135deg, rgba(48, 112, 129, 0.02) 0%, rgba(166, 136, 104, 0.01) 100%); /* Gradiente teal a beige muy sutil */
}

.file-upload label {
    cursor: pointer;
    display: block;
    margin-bottom: 1rem;
}

.file-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.file-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.required-badge,
.optional-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.optional-badge {
    background: linear-gradient(135deg, var(--brand-beige) 0%, var(--brand-gold) 100%); /* Gradiente beige a dorado */
    color: white;
}

.file-help {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 207, 2, 0.03) 0%, rgba(48, 112, 129, 0.03) 100%);
    border-radius: 16px;
    margin-top: 2rem;
}

.submit-button {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-yellow) 100%);
    color: var(--text-white);
    border: none;
    padding: 12px 32px; /* Reducido de 18px 48px */
    border-radius: 25px; /* Reducido de 50px */
    font-size: 1rem; /* Reducido de 1.1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Reducido de 12px */
    position: relative;
    overflow: hidden;
    text-transform: none; /* Quitado uppercase */
    letter-spacing: normal; /* Quitado 0.5px */
}

.submit-button:hover {
    transform: translateY(-2px); /* Reducido de -3px */
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-teal) 100%);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Logo arriba del botón */
.button-logo-container {
    text-align: center;
    margin-bottom: 1rem; /* Reducido de 1.5rem a 1rem */
}

.submit-logo {
    height: 24px; /* Reducido significativamente de 45px a 24px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(166, 136, 104, 0.2)); /* Sombra más sutil también */
    transition: all 0.3s ease;
}

.submit-logo:hover {
    transform: scale(1.1); /* Zoom un poco más notorio para compensar el tamaño pequeño */
    filter: drop-shadow(0 3px 8px rgba(166, 136, 104, 0.3)); /* Sombra más sutil y proporcional */
}

/* Logo en el botón - ya no se usa */
.button-logo {
    height: 16px; /* Más pequeño para no deformar el botón */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.button-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Help Text */
.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
}

.form-notes {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert.success {
    background: rgba(143, 173, 107, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert.error {
    background: rgba(212, 119, 106, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .booking-header {
        padding: 2rem 1rem;
    }
    
    .booking-header h1 {
        font-size: 2.2rem;
    }
    
    .main-logo {
        height: 50px;
    }
    
    /* brand-icon-img eliminado - solo usamos logo principal */
    
    .form-content {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .file-upload-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .file-upload {
        max-width: 100%;
        min-width: 0;
        word-wrap: break-word;
        box-sizing: border-box;
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .booking-header h1 {
        font-size: 1.8rem;
    }
    
    .brand-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-logo {
        /* Mismo tamaño en mobile - solo logo principal */
        height: 40px;
    }
    
    .submit-button {
        width: 100%;
        padding: 14px 32px;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #307081;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-steps {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.step {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(48, 112, 129, 0.1);
    color: #307081;
    font-weight: 500;
}

.step.completed {
    background: rgba(143, 173, 107, 0.1);
    color: #8fad6b;
}

@media (max-width: 480px) {
    .loading-content {
        padding: 1.5rem;
    }
    
    .loading-steps {
        gap: 0.6rem;
    }
    
    .step {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
