/* =================================================================== */
/* ==                     CONTACT PAGE STYLES                       == */
/* =================================================================== */
/* --- 1. Contact Hero --- */
.page-header-container{
  max-width: 1400px;
  margin: 0 auto;
}
.hero-section-contact {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-medium);
}

.contact-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 2. Pathway Cards Section (Redesigned) --- */
.pathway-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-bg-white);
}

.pathway-cards-container {
    max-width: var(--container-width-lg);
    margin: var(--space-xl) auto 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.pathway-card {
    background: rgba(247, 247, 247, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(224, 224, 224, 0.15);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.pathway-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: -1;
    background: radial-gradient(
        circle at 50% 0%,
        hsla(45, 95%, 37%, 0.5),
        transparent 70%
    );
    opacity: 0.5;
    mix-blend-mode: color-dodge;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 70%
    );
    animation: sheen-animation 3.5s ease-in-out infinite;
}

/* Stagger the animation for each card */
.pathway-card:nth-child(2)::before {
    animation-delay: 0.4s;
}
.pathway-card:nth-child(3)::before {
    animation-delay: 0.9s;
}

.pathway-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background-color: var(--color-primary-gold);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(224, 224, 224, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pathway-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-bg-white);
    stroke-width: 2;
    fill: none;
}

.pathway-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
}

.pathway-card p {
    font-size: var(--font-size-small);
    color: var(--color-text-subtle);
    line-height: var(--line-height-base);
    margin: 0 0 var(--space-md) 0;
}

.pathway-card .card-link {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--color-text-link);
    text-decoration: none;
}
a.pathway-card {
  text-decoration: none;
  color: inherit;
}

/* Style the new span to look like the old link */
.card-link-text {
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-text-link);
  text-decoration: none;
}
/* Keyframes for the sheen animation */
@keyframes sheen-animation {
    0% {
        transform: translateX(-101%) skewX(-25deg);
    }
    100% {
        transform: translateX(101%) skewX(-25deg);
    }
}

/* --- 3. Direct Email Section (Icon Button Style) --- */
.direct-email-section {
    padding: var(--space-xl) 0;
    text-align: center;
    background-color: var(--color-bg-white);
}

.direct-email-container h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.email-address-pill {
    display: inline-flex;
    align-items: center;
    /* Remove the gap, padding on the right will handle spacing */
    gap: 0; 
    background: rgba(247, 247, 247, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(224, 224, 224, 0.15);
    border-radius: var(--radius-pill);
    padding-left: var(--space-md); /* Keep padding on the left */
    padding-top: 6px;    /* Use specific padding for vertical alignment */
    padding-bottom: 6px;
    padding-right: 6px;  /* Small padding on the right to contain the button */
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


.email-address-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 70%
    );
    animation: sheen-animation 3.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

.email-address-pill span {
    font-size: 1.125rem;
    font-weight: 500;
    margin-right: var(--space-md); /* Add margin to space out the button */
}

/* New styles for the circular button */
#copy-email-btn {
    width: 50px; /* Set a fixed width */
    height: 50px; /* Set a fixed height to make it a circle */
    border-radius: 50%; /* Makes it a circle */
    background-color: var(--color-primary-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(224, 224, 224, 0.15);
    color: var(--color-bg-white);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#copy-email-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#copy-email-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-bg-white);
}
/* --- 4. Contact Form Section --- */
.contact-form-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-bg-medium);
    display: flex;
    align-items: center;
    min-height: 500px;
}

.form-container {
    max-width: var(--container-width-sm);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.form-container h2 {
    font-size: var(--font-size-large);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-form .form-row {
    display: flex;
    gap: var(--space-md);
}

/* --- This rule is for the single-line inputs --- */
.contact-form input {
    height: 50px; /* Sets a taller, more professional height */
    width: 100%;
    padding: 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    border: 1px solid #dcdce1;
    border-radius: var(--radius-xs);
    box-sizing: border-box; /* Ensures padding is included in the height */
}

/* --- This rule is for the multi-line textarea --- */
.contact-form textarea {
    height: 250px; /* You can set an explicit height here */
    width: 100%;
    padding: 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    border: 1px solid #dcdce1;
    border-radius: var(--radius-xs);
    box-sizing: border-box;
    resize: none; /* This disables resizing */
}

.contact-form button {
    align-self: center;
}

/* --- 5. Explore Link Sections --- */
.explore-link-section {
    background-color: var(--color-bg-dark);
    height: 570px;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.explore-link-content {
    max-width: var(--container-width-lg);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.explore-link-text {
    flex-basis: 500px;
    color: var(--color-text-light);
}

.explore-link-text h3 {
    font-size: var(--font-size-ML);
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
}

.explore-link-text .explore-link {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-secondary-gold);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.explore-link:hover   {
    color: var(--color-secondary-gold-hover);
}

.explore-link-image {
    flex-basis: 80%;
    width: 1200px;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    border: 2px solid rgba(224, 224, 224, 0.15); 
}

.explore-link-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: -1;
    background: radial-gradient(
        circle at 50% 0%,
        hsla(45, 95%, 37%, 0.6),
        transparent 70%
    );
    opacity: 0.5;
    mix-blend-mode: color-dodge;
}

.explore-link-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 20%,
        transparent 70%
    );
    animation: sheen-animation 5.5s ease-in-out infinite;
}


@media (max-width: 743px) {

  .hero-section-contact {
    position: relative;
    overflow: hidden;
    height: 300px; 
  }

  .contact-hero-image {
    position: absolute;
    width: 743px;
    height: 100%;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
  }

  .form-container h2{
    font-size: 2rem;
    font-weight: 400;
  }
  /* --- 1. General Containers & Page Header --- */
  .page-header-container,
  .direct-email-container,
  .form-container {
    max-width: 360px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .page-header-container {
    text-align: center;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .page-title {
    font-size: 2rem !important;
    font-weight: 400 !important;
  }
  .page-slogan {
    font-size: 1.7rem !important;
    font-weight: 400 !important;
  }
  
  /* --- 2. Pathway Cards Section (Mobile Carousel) --- */
  .pathway-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    grid-template-columns: none;
    gap: var(--space-md);
    padding: var(--space-md) calc((100vw - 320px) / 2);
    padding-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .pathway-cards-container::-webkit-scrollbar {
    display: none;
  }

  .pathway-card {
    width: 320px;
    height: 380px;
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg);
    box-sizing: border-box;
  }

  .pathway-card p {
    flex-grow: 1;
  }

  .pathway-section .pagination-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: var(--space-lg) auto 0 auto;
  }

  .pathway-section .dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .pathway-section .dot.active {
    background-color: var(--color-text-dark);
  }

  /* --- 3. Direct Email Section --- */
  .direct-email-section {
    padding: var(--space-md) var(--space-md);
  }

  .email-address-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 247, 247, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(224, 224, 224, 0.15);
    border-radius: var(--radius-pill);
    padding: 0 var(--space-md);
    height: 50px;
    cursor: pointer;
  }

  .email-address-pill span {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 0;
  }
  
  #copy-email-btn {
    display: none;
  }
  
  /* --- 4. Contact Form Section --- */
  .contact-form-section {
    padding: var(--space-xl) 0;
  }

  .contact-form .form-row {
    flex-direction: column;
  }
  
  /* --- 5. Explore Link Sections Carousel --- */
  .mobile-only.carousel-section {
    padding-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .highlights-carousel {
    width: 100%;
  }

  .carousel-viewport {
    width: 100%;
    position: static;
    transform: none;
  }

  .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 calc((100vw - 320px) / 2);
  }

  .highlight-card {
    flex-shrink: 0;
    scroll-snap-align: center;
    margin-right: var(--space-md);
  }

  .pagination-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: var(--space-lg) auto 0 auto;
    padding: 1.5rem 2.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
    width: max-content;
  }
  
  .dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .dot.active {
    background-color: var(--color-text-dark);
    transform: scale(1.2);
  }

  .explore-card {
    background-size: cover;
    background-position: center;
    position: relative;
    width: 320px; 
    height: 480px;
    border-radius: var(--radius-md); 
    display: flex;
    align-items: flex-end;
    justify-content: center; 
    text-align: center;
  }

  .explore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 10%, transparent 50%);
    z-index: 1;
    border-radius: var(--radius-md);
  }

  .explore-card .highlight-card-content {
    z-index: 2;
    color: #fff;
    width: 100%;
    padding: var(--space-lg);
    box-sizing: border-box;
  }

  .explore-card .highlight-card-title {
    font-size: 1.8rem;
  }

  .explore-card .explore-link {
    display: block;
    text-decoration: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0; 
  }

  .explore-card .explore-link .highlight-card-title {
    color: #fff;
  }
}

/* ==           SKELETON PLACEHOLDERS       == */

body.is-loading .pathway-card h3,
body.is-loading .pathway-card p,
body.is-loading .direct-email-container h3,
body.is-loading .form-container h2,
body.is-loading .explore-link-text h3 {
    color: transparent;
    animation: placeholder-shimmer 2s linear infinite;
    background-color: #e0e0e0;
    background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
    background-repeat: no-repeat;
    background-size: 2000px 100%;
    border-radius: var(--radius-xs);
}

/* --- Hero Image --- */
body.is-loading .contact-hero-image {
    visibility: hidden;
}
body.is-loading .hero-section-contact {
    animation: placeholder-shimmer 2s linear infinite;
    background-color: #e0e0e0;
    background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
    background-repeat: no-repeat;
    background-size: 2000px 100%;
}

/* --- Page Header --- */
body.is-loading .page-title {
    min-height: 65px;
    width: 270px;
}
body.is-loading .page-slogan {
    min-height: 36px;
    width: 325px;
}

/* --- Pathway Cards --- */
body.is-loading .pathway-card h3 {
    min-height: 28px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
body.is-loading .pathway-card p {
    min-height: 48px;
    width: 100%;
}
body.is-loading .pathway-card .card-link {
    visibility: hidden; 
}

/* --- Direct Email Section --- */
body.is-loading .direct-email-container h3 {
    width: 350px;
    min-height: 28px;
    margin-left: auto;
    margin-right: auto;
}
body.is-loading .email-address-pill {
    visibility: hidden; 
}

/* --- Contact Form Section --- */
body.is-loading .form-container h2 {
    width: 300px;
    min-height: 42px;
    margin-left: auto;
    margin-right: auto;
}

/* Hide individual form elements */
body.is-loading .contact-form input,
body.is-loading .contact-form textarea,
body.is-loading .contact-form button {
    visibility: hidden;
}

/* Apply a single placeholder to the entire form container */
body.is-loading .contact-form {
    min-height: 270px;
    border-radius: var(--radius-xs);
    animation: placeholder-shimmer 2s linear infinite;
    background-color: #e0e0e0; 
    background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
    background-repeat: no-repeat;
    background-size: 2000px 100%;
}

/* --- Explore Link Sections (Darker Version) --- */
body.is-loading .explore-link-text h3 {
    color: transparent; 
    width: 250px;
    min-height: 38px;
    border-radius: var(--radius-xs); 
    animation: placeholder-shimmer 2s linear infinite;
    background-repeat: no-repeat;
    background-size: 2000px 100%;
    background-color: #3a3a3a;
    background-image: linear-gradient(to right, #3a3a3a 0%, #4a4a4a 40%, #3a3a3a 80%, #3a3a3a 100%);
}

body.is-loading .explore-link-text .explore-link {
    visibility: hidden;
}

body.is-loading .explore-link-image img {
    visibility: hidden;
}

body.is-loading .explore-link-image {
    animation: placeholder-shimmer 2s linear infinite;
    background-repeat: no-repeat;
    background-size: 2000px 100%;
    background-color: #3a3a3a;
    background-image: linear-gradient(to right, #3a3a3a 0%, #4a4a4a 40%, #3a3a3a 80%, #3a3a3a 100%);
}

body.is-loading .pathway-card .card-link-text {
  visibility: hidden; 
}


@media (max-width: 1680px) {
    .pathway-cards-container{
      max-width: 1169px;
    }
    .explore-link-section{
      height: 480px;
      
    }
    .explore-link-image{
      height: 380px;
    }
    .explore-link-image img{
      height: 100%;
      transform: translateX(-100px)
    }
    .explore-link-content{
      max-width: 1169px;
    }
    }

    
@media (max-width: 743px) {
  /* --- Page Header Placeholders --- */
  body.is-loading .page-title {
    width: 60%;
    min-height: 40px;
    margin: 0 auto;
  }
  body.is-loading .page-slogan {
    width: 50%;
    min-height: 24px;
    margin: 1rem auto;
  }

  /* --- Pathway Cards Placeholders --- */
  body.is-loading .pathway-cards-container {
    display: flex;
    overflow: hidden;
  }
  body.is-loading .pathway-card {
    min-height: 380px;
    animation: placeholder-shimmer 2s linear infinite;
    background-color: #e0e0e0; 
    background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
    background-size: 2000px 100%;
  }
  body.is-loading .pathway-card .pathway-icon,
  body.is-loading .pathway-card h3,
  body.is-loading .pathway-card p,
  body.is-loading .pathway-card .card-link-text {
    visibility: hidden;
  }

  /* --- Direct Email Placeholder --- */
  body.is-loading .direct-email-container h3 {
    width: 80%;
    min-height: 24px;
  }
  
  /* --- Explore Link Sections Placeholders --- */
  body.is-loading .desktop-only {
    display: none;
  }

  body.is-loading .mobile-only.carousel-section {
    display: none;
  }
  
  .mobile-carousel-placeholder {
    display: none;
  }
  
  body.is-loading .mobile-carousel-placeholder {
    display: block;
    width: 320px;
    height: 480px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    animation: placeholder-shimmer 2s linear infinite;
    background-color: #e0e0e0;
    background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
    background-repeat: no-repeat;
    background-size: 2000px 100%;
  }
}

