/* Contact Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-header.jpg') center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact page navbar styling with off-white color */
.contact-page .navbar {
    background: #f5f5f5 !important; /* Off-white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-page .navbar-menu a {
    color: #333333; /* Dark text for contrast */
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-page .navbar-menu a:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.contact-page .navbar-menu a.active {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.contact-page .navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Logo text color adjustment for off-white background */
.contact-page .logo-text {
    color: #333333;
}

.contact-page .logo-text span {
    color: var(--primary);
}

/* Mobile menu styling for contact page */
.contact-page .mobile-menu {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.contact-page .mobile-menu a {
    color: #333333;
}

.contact-page .mobile-menu a:hover,
.contact-page .mobile-menu a.active {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Hamburger icon color adjustment */
.contact-page .navbar-toggle {
    color: #333333;
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tavern-card {
    border-top: 4px solid var(--primary);
}

.trendy-card {
    border-top: 4px solid var(--secondary);
}

.realtors-card {
    border-top: 4px solid var(--accent);
}

/* Round circle styling for contact icons with images */
.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure images fill the circle properly */
.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the entire circle */
}

/* Specific styles for each card type */
.tavern-card .contact-icon {
    border: 3px solid #E65100; /* Orange for tavern */
}

.trendy-card .contact-icon {
    border: 3px solid #8B0000; /* Red for trendy */
}

.realtors-card .contact-icon {
    border: 3px solid #b5ad56; /* Gold for realtors */
}

.tavern-card .contact-icon {
    background-color: var(--primary);
    color: white;
}

.trendy-card .contact-icon {
    background-color: var(--secondary);
    color: white;
}

.realtors-card .contact-icon {
    background-color: var(--accent);
    color: white;
}

.contact-card h2 {
    margin-bottom: 1.5rem;
}

.tavern-card h2 {
    color: var(--primary);
}

.trendy-card h2 {
    color: var(--secondary);
}

.realtors-card h2 {
    color: #b5ad56;
}

.contact-details {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.tavern-card .contact-item i {
    color: var(--primary);
}

.trendy-card .contact-item i {
    color: var(--secondary);
}

.realtors-card .contact-item i {
    color: #b5ad56;
}

/* Map Section */
.map-section {
    background-color: var(--light);
}

.map-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #f5f5f5;
}

.tab-button.active {
    background-color: var(--primary);
    color: white;
}

.tab-button[data-tab="trendy"].active {
    background-color: var(--secondary);
}

.tab-button[data-tab="realtors"].active {
    background-color: var(--accent);
}

.tab-content {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane iframe {
    display: block;
}

/* Form Section */
.form-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/form-bg.jpg') center/cover no-repeat;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-content {
    padding: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-form {
    padding: 2rem;
    background-color: var(--light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-family: var(--body-font);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Form Message Styles */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Form Validation Styles */
.invalid {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h3 {
    margin-bottom: 1rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input:focus.error,
.form-group select:focus.error,
.form-group textarea:focus.error {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .tab-buttons {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tab-button {
        padding: 1rem 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header,
.contact-card,
.map-tabs,
.form-wrapper {
    animation: fadeIn 0.8s ease forwards;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}


