/*
*   Mariscos Cabo Seafood - Contact 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;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

/* Cards - Modern Glass Effect */
.contact-info-card,
.contact-form-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.contact-info-card h2,
.contact-form-card h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-card h2::after,
.contact-form-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.contact-info-card > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* Contact Details */
.contact-details {
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(230, 126, 34, 0.05);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.contact-icon i {
    color: white;
    font-size: 1.3rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-text a {
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary-color);
}

/* Social Section */
.social-section {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.social-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    font-weight: 600;
}

.social-section .social-links {
    margin-top: 0;
    display: flex;
    gap: 0.75rem;
}

.social-section .social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-section .social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form - Modern Styling */
.contact-form .form-row {
    display: block; /* Changed from grid to block - all fields on own line */
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form .form-row .form-group {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.contact-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%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    color: var(--text-color);
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: #ccc;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.contact-form select {
    cursor: pointer;
    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 1rem center;
    padding-right: 2.5rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Submit Button */
.contact-form .btn-block {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
    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 4px 15px rgba(230, 126, 34, 0.3);
    margin-top: var(--spacing-sm);
}

.contact-form .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.contact-form .btn-block:active {
    transform: translateY(0);
}

/* Form Message */
.form-message {
    margin-top: var(--spacing-md);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    display: none; /* Hidden by default, shown when class is added */
    font-weight: 500;
}

.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);
}

/* Success message list styling */
.form-message ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.form-message li {
    margin: 8px 0;
    padding-left: 0;
}

/* Country Code and Phone Input Styling */
.contact-form .form-row-phone {
    display: block; /* Changed from grid - all fields on own line */
}

.country-code-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    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 1rem center;
    padding-right: 2.5rem;
}

.country-code-select:hover {
    border-color: #ccc;
    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 4px rgba(230, 126, 34, 0.1);
}

/* Phone Input with Country Code Prefix */
.phone-input-with-code {
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    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 4px rgba(230, 126, 34, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.country-code-prefix {
    padding: 1rem 0 1rem 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
    border-right: 2px solid var(--border-color);
    margin-right: 0.5rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.phone-number-input {
    flex: 1;
    border: none;
    padding: 1rem 1.25rem 1rem 0;
    background: transparent;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
}

.phone-number-input:focus {
    box-shadow: none;
    transform: none;
}

/* Hours Section */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.hours-info .hours-list {
    margin-top: var(--spacing-md);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item:hover {
    background: rgba(230, 126, 34, 0.03);
}

.hours-item.highlight {
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.05));
    border: none;
    position: relative;
}

.hours-item.highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
}

.hours-item .day {
    font-weight: 500;
    color: var(--secondary-color);
}

.hours-item .time {
    color: var(--primary-color);
    font-weight: 600;
}

/* Reservation CTA */
.reservation-cta {
    background: linear-gradient(135deg, var(--secondary-color), #1a252f);
    border-radius: 16px;
    padding: var(--spacing-xl);
    color: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.reservation-cta i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.reservation-cta h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.reservation-cta p {
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.reservation-cta .btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reservation-cta .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    height: 450px;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-hero {
        margin-top: 70px;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid,
    .hours-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: var(--spacing-md);
        border-radius: 12px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .contact-text {
        align-items: center;
    }
    
    .social-section .social-links {
        justify-content: center;
    }
    
    .map-section {
        height: 350px;
    }
}
