/* Page Hero Section */
#page-hero {
    background: linear-gradient(135deg, var(--soft-orange) 0%, var(--soft-pink) 100%);
    padding: 5rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

#page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--title-orange), #e67e22, var(--title-orange));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

#page-hero h1 {
    margin-bottom: 1rem;
    color: var(--title-orange);
    position: relative;
}

#page-hero p {
    font-family: 'Lora', serif;
    font-style: italic;
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

#bookings-contact {
    padding: 2rem 0 5rem 0;
}


.booking-section {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

#contact-form {
    min-height: 100vh;
    padding: 2rem 0;
    background-color: #fdf8f4;
}

/* Form Header Styling */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(252, 240, 227, 0.9) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(215, 84, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(215, 84, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--title-orange), 
        #e67e22, 
        var(--title-orange));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-header h1 {
    margin-bottom: 1.5rem;
    color: var(--title-orange);
    font-size: clamp(2.2rem, 5vw, 3rem);
    position: relative;
}

.form-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--title-orange);
    border-radius: 2px;
}

.form-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main Form Container */
.contact-form {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(215, 84, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04);
    max-width: 750px;
    margin: 0 auto;
    border: 1px solid rgba(215, 84, 0, 0.08);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--title-orange), 
        transparent);
    border-radius: 0 0 2px 2px;
}

/* Message textarea specific styling */
#message {
    min-height: 180px;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 84, 0, 0.3) transparent;
}

/* Webkit scrollbar styling for message textarea */
#message::-webkit-scrollbar {
    width: 8px;
}

#message::-webkit-scrollbar-track {
    background: transparent;
}

#message::-webkit-scrollbar-thumb {
    background-color: rgba(215, 84, 0, 0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#message::-webkit-scrollbar-thumb:hover {
    background-color: rgba(215, 84, 0, 0.5);
}

/* Enhanced placeholder styling for scrollable placeholders */
.form-group .scrollable-placeholder::placeholder {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Enable scrolling for textarea placeholders when in scrollable mode */
.form-group textarea.scrollable-placeholder {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 84, 0, 0.3) transparent;
}

/* Enable scrolling for input placeholders when in scrollable mode */
.form-group input.scrollable-placeholder {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 84, 0, 0.3) transparent;
    /* Increase height to accommodate multi-line placeholder text */
    min-height: 60px;
    height: auto;
    white-space: pre-wrap;
}

.form-group input.expanded-placeholder {
    height: 4.5rem; /* Sudden expansion to accommodate 2 lines with equal spacing */
    min-height: 4.5rem;
    padding-top: 1rem; /* Keep normal top padding */
    padding-bottom: 2.5rem; /* Add expansion to bottom padding only */
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
    border-color: rgba(215, 84, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Enhanced placeholder styling for expanded input placeholders */
.form-group input.expanded-placeholder::placeholder {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
    display: block;
}

/* Additional styling to support multiline input behavior */
.form-group input.expanded-placeholder {
    vertical-align: top;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Webkit scrollbar styling for textarea placeholders */
.form-group textarea.scrollable-placeholder::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea.scrollable-placeholder::-webkit-scrollbar-track {
    background: transparent;
}

.form-group textarea.scrollable-placeholder::-webkit-scrollbar-thumb {
    background-color: rgba(215, 84, 0, 0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.form-group textarea.scrollable-placeholder::-webkit-scrollbar-thumb:hover {
    background-color: rgba(215, 84, 0, 0.5);
}

/* Webkit scrollbar styling for input placeholders */
.form-group input.scrollable-placeholder::-webkit-scrollbar {
    width: 8px;
}

.form-group input.scrollable-placeholder::-webkit-scrollbar-track {
    background: transparent;
}

.form-group input.scrollable-placeholder::-webkit-scrollbar-thumb {
    background-color: rgba(215, 84, 0, 0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.form-group input.scrollable-placeholder::-webkit-scrollbar-thumb:hover {
    background-color: rgba(215, 84, 0, 0.5);
}

/* Enhanced focus state for scrollable placeholders */
.form-group .scrollable-placeholder:focus::placeholder {
    opacity: 0.6;
    color: #777;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

/* Animation for form appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form,
.form-header {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus indicators for accessibility */
.form-group input:focus,
.form-group textarea:focus,
.checkbox-label:focus-within .checkmark,
.btn:focus {
    outline: 3px solid rgba(215, 84, 0, 0.3);
    outline-offset: 2px;
}

/* Ajustes para el formulario dentro de la carta */
.contact-section .form-group {
    margin-bottom: 1.5rem;
}

.contact-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--title-orange);
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fdfdfd;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--title-orange);
    outline: none;
    background: #fff;
}



/* Eliminar estilos viejos que puedan causar conflicto si es necesario, 
   o simplemente sobrescribir arriba */
.form-header {
    display: none; /* Ocultamos el header antiguo del form */
}

/* Corrección del botón Enviar (Eliminar línea naranja superior) */
.form-actions {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 2rem !important;
}

.form-actions::before {
    display: none !important;
}
.contact-section .form-group {
    margin-bottom: 1.5rem;
}

.contact-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--title-orange);
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fdfdfd;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--title-orange);
    outline: none;
    background: #fff;
}



/* Eliminar estilos viejos que puedan causar conflicto si es necesario, 
   o simplemente sobrescribir arriba */
.form-header {
    display: none; /* Ocultamos el header antiguo del form */
}

/* Corrección del botón Enviar (Eliminar línea naranja superior) */
.form-actions {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 2rem !important;
}

.form-actions::before {
    display: none !important;
}