/* Contact Page Styles */
:root {
    --primary-color: #5B0000;
    --secondary-color: #C18E11;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

/* 1. Page Hero (Smaller than Home Hero) */
.page-hero {
  /* 1. The Background Image with a Maroon/Gold Overlay */
  background:
    linear-gradient(135deg, rgba(91, 0, 0, 0.336) 0%, rgba(53, 25, 25, 0.514) 50%, rgba(83, 70, 65, 0.5) 100%),
    url("../images/contactSlider.png");

  /* 2. Image Positioning */
  background-size: cover; /* Ensures image covers the whole area */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;

  /* 3. Layout & Sizing */
  height: 60vh; /* Adjust height: 60% of the viewport height */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Optional: Style the text inside */
.page-hero h1 {
  font-size: 3.5rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  color: #e0e0e0;
}

.page-hero .breadcrumb {
  font-size: 0.95rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.page-hero .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero .breadcrumb span {
  margin: 0 6px;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 300px;
    height: 40vh;
    background-attachment: scroll;
    /* Disable parallax on mobile for better performance */
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .page-hero .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 250px;
    height: 35vh;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* Contact Section */
.contact-section {
    padding: 80px 8%;
    background: var(--bg-light);
}

.contact-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

/* Contact Info Card */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1;
    min-height: 250px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.info-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-of-type {
    margin-bottom: 0;
}

.info-item i {
    width: 20px;
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.form-intro {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group .required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(193, 142, 17, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group 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 15px center;
    padding-right: 40px;
}

/* Checkbox Group */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-group label a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Captcha Group */
.captcha-group {
    gap: 10px;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.captcha-display {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    padding: 12px 25px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--primary-color);
    user-select: none;
    border: 1px solid #ccc;
    text-decoration: line-through;
    font-style: italic;
}

.captcha-reload {
    width: 44px;
    height: 44px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.captcha-reload:hover {
    background: var(--primary-color);
}

/* Submit Button */
.btn-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-color);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Message Box */
.message-box {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.message-box.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-box.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-box.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-section {
        padding: 60px 4%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 4%;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 4%;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.35rem;
    }

    .info-card {
        padding: 20px;
    }

    .captcha-display {
        font-size: 1.1rem;
        padding: 10px 18px;
        letter-spacing: 3px;
    }

    .captcha-reload {
        width: 40px;
        height: 40px;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}
