/*
*   Mariscos Cabo Seafood - Reservations Page Styles
*   Modern, elegant form styling
*/

/* Page Hero */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.page-hero-content .subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--primary-color);
    font-weight: 600;
}

.page-hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Hero background */
.hero-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Reservation Grid */
.reservation-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Reservation Form Card - Modern Glass Effect */
.reservation-form-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reservation-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.reservation-form-card h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.reservation-form-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.reservation-form-card > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Form Styles - Modern Design */
.reservation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Country Code/Phone row - Country Code 20% narrower */
.reservation-form .form-row-phone {
    grid-template-columns: 2fr 3fr;
}

.reservation-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Wider fields for Name and Email (30% wider) */
.reservation-form .form-group-wide {
    width: 100%;
}

.reservation-form .form-group-wide label {
    /*  margin-bottom: 0.5rem; Closer to input */
    width: 65%; /* 35% less than 100% */
}

.reservation-form .form-group-wide input {
    width: 100%;
    max-width: 100%;
}

.reservation-form .form-row .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.reservation-form .form-row .form-group label {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
}

.reservation-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    line-height: 1.4;
    width: 100%;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-color);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    line-height: 1.5;
}

.reservation-form input:not([type="date"]):not([type="time"]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.reservation-form input::placeholder,
.reservation-form textarea::placeholder {
    color: #aaa;
}

.reservation-form input:hover,
.reservation-form select:hover,
.reservation-form textarea:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.reservation-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23666' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-color: #ffffff;
    padding-right: 3rem;
}

/* Country Code Select - Now on its own line */
.country-code-select {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23666' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
}

.country-code-select:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.country-code-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Phone Input with Country Code Prefix */
.phone-input-with-code {
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.phone-input-with-code:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.country-code-prefix {
    padding: 1.1rem 0 1.1rem 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
    border-right: 2px solid #e0e0e0;
    margin-right: 0.5rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.phone-number-input {
    flex: 1;
    border: none;
    padding: 1.1rem 1.4rem 1.1rem 0;
    background: transparent;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
}

.phone-number-input:focus {
    box-shadow: none;
    transform: none;
}

.reservation-form input[type="date"],
.reservation-form input[type="date"].date-picker-input {
    cursor: pointer;
    /* Prevent keyboard input - only allow calendar picker */
    caret-color: transparent;
}

.reservation-form input[type="date"]:focus,
.reservation-form input[type="date"].date-picker-input:focus {
    caret-color: transparent;
}

/* Enhanced Date Picker Styling */
.reservation-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    background-color: var(--primary-color);
    border-radius: 4px;
    padding: 4px;
    margin-right: 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.reservation-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: var(--primary-dark);
}

.reservation-form input[type="date"]::-webkit-inner-spin-button,
.reservation-form input[type="date"]::-webkit-outer-spin-button {
    display: none;
}

.reservation-form input[type="time"] {
    cursor: pointer;
}

.reservation-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Ensure Special Requests label is above textarea */
.reservation-form label[for="notes"] {
    display: block;
    margin-bottom: 0.75rem;
    width: 100%;
}

/* Submit Button - Premium Style */
.reservation-form .btn-block {
    width: 100%;
    padding: 1.15rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 14px;
    text-transform: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
    margin-top: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.reservation-form .btn-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.reservation-form .btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.45);
}

.reservation-form .btn-block:hover::before {
    left: 100%;
}

.reservation-form .btn-block:active {
    transform: translateY(-1px);
}

/* Form Message */
.form-message {
    margin-top: var(--spacing-md);
    padding: 1.25rem;
    border-radius: 14px;
    text-align: center;
    display: none;
    font-weight: 500;
    line-height: 1.6;
}

.form-message ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.form-message li {
    margin: 8px 0;
    padding-left: 0;
}

.form-message.success {
    display: block;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    color: #27ae60;
    border: 2px solid rgba(39, 174, 96, 0.3);
}

.form-message.error {
    display: block;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    color: #e74c3c;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.form-message.info {
    display: block;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    color: #3498db;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

/* Reservation Info Cards */
.reservation-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list li > div {
    flex: 1;
}

.info-list i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-list .phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.info-list .phone-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    text-decoration: none;
}

/* Hours Compact */
.hours-compact {
    margin-top: var(--spacing-sm);
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hour-row:last-child {
    border-bottom: none;
}

.hour-row:hover {
    padding-left: 0.5rem;
}

.hour-row span:first-child {
    font-weight: 500;
    color: var(--secondary-color);
}

.hour-row span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Card - Premium Design */
.cta-card {
    background: linear-gradient(135deg, var(--secondary-color), #1a252f);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.15) 0%, transparent 70%);
}

.cta-card h3 {
    color: white;
}

.cta-card h3::after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.cta-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-card .btn:last-child {
    margin-bottom: 0;
}

.cta-card .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.cta-card .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: transparent;
    border: 2px solid #25D366;
    color: #25D366;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    transform: translateY(-2px);
}

/* Events Section */
.events-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.events-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.events-text .btn {
    margin-top: var(--spacing-sm);
}

.events-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.events-image:hover img {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-hero {
        margin-top: 70px;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .reservation-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .reservation-info {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1 1 280px;
    }
    
    .events-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .events-image {
        order: -1;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .reservation-form .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .reservation-form-card {
        padding: var(--spacing-md);
        border-radius: 16px;
    }
    
    .reservation-info {
        flex-direction: column;
    }
    
    .info-card {
        flex: 1 1 100%;
        border-radius: 14px;
    }
    
    .cta-card h3::after {
        left: 0;
        transform: none;
    }
    
    .cta-card {
        text-align: left;
    }
}
