/* ==========================================
   Contact Page Modern Styling (2026)
   ========================================== */

/* Hero Slider Section (85vh Grand Height) */
.contact-hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.contact-hero-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height, 90px) + 2rem) 2rem 4rem 2rem;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.78) 100%);
  z-index: 1;
}

.contact-hero-section .hero-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.contact-hero-section .section-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.contact-hero-section .hero-title {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 3.8rem;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.25rem;
}

.contact-hero-section .section-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Slider Dots */
.contact-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .contact-hero-section .hero-title {
    font-size: 2.75rem;
  }
}


/* =========================================
   CONTACT FORM MODAL
========================================= */

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.contact-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   MODAL CARD
========================================= */

.contact-modal {
    position: relative;

    width: min(100%, 470px);

    padding: 42px 38px 36px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.06);

    border-radius: 24px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.18),
        0 10px 30px rgba(15, 23, 42, 0.08);

    transform:
        translateY(35px)
        scale(0.94);

    opacity: 0;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.contact-modal-overlay.show .contact-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* =========================================
   ICON
========================================= */

.contact-modal-icon {
    position: relative;

    width: 76px;
    height: 76px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 32px;
    font-weight: 700;

    animation: modalIconPop 0.55s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal-icon::before {
    content: "";

    position: absolute;

    inset: -8px;

    border-radius: 50%;

    border: 1px solid currentColor;

    opacity: 0.12;
}

.contact-modal-icon.success {
    color: #16875c;

    background:
        linear-gradient(
            145deg,
            #e9faf3,
            #d9f5e9
        );
}

.contact-modal-icon.error {
    color: #d9534f;

    background:
        linear-gradient(
            145deg,
            #fff1f1,
            #ffe4e4
        );
}

@keyframes modalIconPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================================
   TITLE
========================================= */

.contact-modal h3 {
    margin: 0 0 12px;

    color: #172033;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.5px;
}


/* =========================================
   MESSAGE
========================================= */

.contact-modal p {
    max-width: 390px;

    margin: 0 auto 28px;

    color: #667085;

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================
   OK BUTTON
========================================= */

.contact-modal-close {
    min-width: 130px;

    padding: 13px 28px;

    border: none;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #167c5c,
            #0f9b70
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(22, 124, 92, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.contact-modal-close:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(22, 124, 92, 0.28);

    filter: brightness(1.04);
}

.contact-modal-close:active {
    transform: translateY(0);
}


/* =========================================
   CLOSE / DISABLED
========================================= */

.contact-modal-close:focus-visible {
    outline: 3px solid rgba(22, 124, 92, 0.2);
    outline-offset: 3px;
}


/* =========================================
   FORM SUBMIT BUTTON
========================================= */

#contactForm button[type="submit"]:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .contact-modal-overlay {
        padding: 16px;
    }

    .contact-modal {
        width: 100%;

        padding: 34px 24px 28px;

        border-radius: 20px;
    }

    .contact-modal-icon {
        width: 68px;
        height: 68px;

        margin-bottom: 20px;

        font-size: 28px;
    }

    .contact-modal h3 {
        font-size: 23px;
    }

    .contact-modal p {
        font-size: 14px;
        line-height: 1.7;

        margin-bottom: 24px;
    }

    .contact-modal-close {
        width: 100%;
    }
}