/* style/contact.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Dodger Blue */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: var(--dark-bg-1); /* From shared.css */
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

.page-contact {
    color: var(--text-color-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

/* Fixed Nav Bar Padding */
.page-contact__hero-contact-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.page-contact__hero-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.page-contact__hero-contact-image {
    flex: 1;
    min-width: 300px;
}

.page-contact__hero-contact-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-contact__hero-contact-content {
    flex: 2;
    color: var(--text-color-light);
}

.page-contact__hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-contact__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 16px 35px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-contact__cta-button:hover {
    background: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--large {
    font-size: 20px;
    padding: 20px 40px;
}

.page-contact__section {
    padding: 60px 20px;
    background-color: var(--background-light); /* Light background for content sections */
    color: var(--text-color-dark); /* Dark text on light background */
}

.page-contact__section:nth-of-type(even) {
    background-color: var(--card-bg);
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Methods Section */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-contact__method-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 100px; /* Min size 200x200px, but for icons, 100px is illustrative */
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-contact__method-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #1a7ae0;
    text-decoration: underline;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-contact__social-link {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    color: var(--secondary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
    background: var(--secondary-color);
    color: var(--text-color-light);
}

.page-contact__working-hours {
    background: var(--background-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__working-hours-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact__working-hours-text {
    font-size: 17px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 10px;
}

/* Contact Form Section */
.page-contact__contact-form-section .page-contact__section-description {
    margin-bottom: 30px;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.page-contact__form-illustration {
    flex: 1;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color-dark);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__submit-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start; /* Align button to the left */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__submit-button:hover {
    background: #187bcd;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Common Issues Section */
.page-contact__common-issues {
    background-color: var(--background-light);
}

.page-contact__issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-contact__issue-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__issue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__issue-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact__issue-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

.page-contact__issue-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__issue-link:hover {
    color: #1a7ae0;
    text-decoration: underline;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: var(--card-bg);
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-color-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark);
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Commitment Section */
.page-contact__commitment-section {
    background-color: var(--background-light);
}

.page-contact__commitment-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__commitment-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__commitment-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__commitment-icon {
    width: 120px; /* Min size 200x200px, but for icons, 120px is illustrative */
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-contact__commitment-item h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-contact__commitment-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

.page-contact__commitment-conclusion {
    font-size: 18px;
    line-height: 1.7;
    color: #444444;
    text-align: center;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__final-cta {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-contact__hero-contact-container {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__hero-contact-content {
        order: 1;
    }

    .page-contact__hero-contact-image {
        order: 2;
        margin-top: 30px;
    }

    .page-contact__hero-title {
        font-size: 36px;
    }

    .page-contact__hero-description {
        font-size: 17px;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
    }

    .page-contact__form-illustration {
        max-width: 100%;
    }

    .page-contact__submit-button {
        align-self: center;
    }

    .page-contact__section-title {
        font-size: 30px;
    }

    .page-contact__section-description {
        font-size: 17px;
    }

    .page-contact__method-title,
    .page-contact__issue-title,
    .page-contact__commitment-item h3 {
        font-size: 20px;
    }

    .page-contact__method-text,
    .page-contact__issue-text,
    .page-contact__commitment-item p {
        font-size: 15px;
    }

    .page-contact__working-hours-title {
        font-size: 22px;
    }
    .page-contact__working-hours-text {
        font-size: 16px;
    }
    .page-contact__cta-button--large {
        font-size: 18px;
        padding: 18px 35px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-contact-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__section {
        padding: 40px 15px;
    }

    .page-contact__hero-title {
        font-size: 28px;
    }

    .page-contact__hero-description {
        font-size: 16px;
    }

    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-contact__section-title {
        font-size: 26px;
    }

    .page-contact__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-contact__methods-grid,
    .page-contact__issues-grid,
    .page-contact__commitment-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card,
    .page-contact__issue-card,
    .page-contact__commitment-item {
        padding: 25px;
    }

    .page-contact__form-wrapper {
        padding: 30px 20px;
    }

    .page-contact__form-label {
        font-size: 15px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-contact__submit-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-contact__working-hours-title {
        font-size: 20px;
    }
    .page-contact__working-hours-text {
        font-size: 15px;
    }
    
    /* FAQ Mobile Styles */
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }

    .page-contact__cta-button--large {
        font-size: 16px;
        padding: 15px 30px;
    }

    /* Mobile image responsive optimization */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-contact__section,
    .page-contact__container,
    .page-contact__hero-contact-container,
    .page-contact__form-wrapper,
    .page-contact__methods-grid,
    .page-contact__issues-grid,
    .page-contact__commitment-points {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-contact-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__hero-contact-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}