/* =====================================
   TTK PRECAST CONTACT PAGE
===================================== */

.contact-page {
    --green: #244b35;
    --dark: #153425;
    --gold: #d5ad25;
    --light: #f1f5ef;
    --text: #59665d;

    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

.contact-page * {
    box-sizing: border-box;
}

.contact-page .contact-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 65px 0;
    background:
        linear-gradient(90deg, rgba(22, 36, 25, 0.92) 0%, rgba(28, 45, 28, 0.79) 48%, rgba(20, 30, 24, 0.25) 100%),
        url('../images/factory-real.webp') center/cover no-repeat;
    border-bottom: 5px solid var(--gold);
}

.contact-page .hero-content {
    max-width: 720px;
}

.contact-page .eyebrow {
    color: #e5c650;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-page .contact-hero h1 {
    color: #fff;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0;
}

.contact-page .contact-hero h1 span {
    color: #e5c650;
}

.contact-page .contact-hero p {
    max-width: 600px;
    color: #e1e9e3;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 0;
}

/* MAIN CONTACT SECTION */

.contact-page .contact-section {
    padding: 65px 0;
    background: var(--light);
}

.contact-page .contact-card {
    height: 100%;
    padding: 32px;
    background: #fff;
    border: 1px solid #e4e9e2;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(21, 52, 37, .04);
}

.contact-page .section-label {
    color: #64833e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-page .section-title {
    color: var(--dark);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    margin: 12px 0;
}

.contact-page .gold-line {
    width: 55px;
    height: 4px;
    background: var(--gold);
    margin: 15px 0;
}

.contact-page .section-description {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* CONTACT INFORMATION - NO IMAGES */

.contact-page .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 19px 0;
    border-bottom: 1px solid #e2e8e0;
}

.contact-page .contact-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-page .detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
}

.contact-page .detail-content {
    flex: 1;
    min-width: 0;
}

.contact-page .detail-content h3 {
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
    margin: 2px 0 7px;
}

.contact-page .detail-content p,
.contact-page .detail-content address {
    color: var(--text);
    font-size: 12px;
    line-height: 1.85;
    margin: 0;
    font-style: normal;
}

.contact-page .detail-content a {
    color: #405f43;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-page .detail-content a:hover {
    color: #947615;
}

.contact-page .directions-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
}

/* ENQUIRY FORM - NO IMAGES */

.contact-page .form-card {
    position: relative;
    overflow: hidden;
}

.contact-page .form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gold);
}

.contact-page .form-intro {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 27px;
}

.contact-page .form-label {
    display: block;
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-page .required {
    color: #d93025;
}

.contact-page .form-control,
.contact-page .form-select {
    width: 100%;
    min-height: 47px;
    padding: 12px 13px;
    border: 1px solid #d9e0d8;
    border-radius: 4px;
    background: #fff;
    color: #34443a;
    font-family: inherit;
    font-size: 12px;
    box-shadow: none;
}

.contact-page textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-page .form-control:focus,
.contact-page .form-select:focus {
    border-color: #64833e;
    box-shadow: 0 0 0 3px rgba(100, 131, 62, .12);
}

.contact-page .submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
}

.contact-page .submit-btn:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.contact-page .form-alert {
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.8;
}

.contact-page .success-message {
    background: #e8f5e9;
    color: #1c6333;
    border: 1px solid #b8dfc0;
}

.contact-page .error-message {
    background: #fff0ef;
    color: #a52720;
    border: 1px solid #f0c3bf;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .contact-page .contact-section {
        padding: 50px 0;
    }

    .contact-page .contact-card {
        padding: 27px;
    }
}

@media (max-width: 767px) {
    .contact-page .contact-hero {
        min-height: 320px;
        padding: 50px 0;
      
    }

    .contact-page .contact-hero h1 {
        font-size: 35px;
    }

    .contact-page .contact-card {
        padding: 23px;
    }

    .contact-page .contact-detail {
        gap: 12px;
    }

    .contact-page .detail-icon {
        width: 40px;
        height: 40px;
    }
}

/* ==============================
   EXTRA MOBILE RESPONSIVENESS
================================ */

@media (max-width: 575.98px) {

    .contact-page {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .contact-page .contact-hero {
        min-height: auto;
        padding: 42px 0;
        background-position: 60% center;
    }

    .contact-page .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .contact-page .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .contact-page .contact-hero h1 {
        font-size: clamp(29px, 7vw, 35px);
        line-height: 1.2;
        margin: 14px 0;
        overflow-wrap: break-word;
    }

    .contact-page .contact-hero p {
        font-size: 13px;
        line-height: 1.8;
    }

    .contact-page .contact-section {
        padding: 35px 0;
    }

    .contact-page .contact-card {
        padding: 20px 16px;
        border-radius: 6px;
    }

    .contact-page .section-title {
        font-size: 25px;
        line-height: 1.3;
    }

    .contact-page .section-description,
    .contact-page .form-intro {
        font-size: 12px;
        line-height: 1.8;
    }

    /* Contact details */
    .contact-page .contact-detail {
        gap: 10px;
        padding: 15px 0;
    }

    .contact-page .detail-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .contact-page .detail-content h3 {
        font-size: 13px;
    }

    .contact-page .detail-content p,
    .contact-page .detail-content address {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    /* Enquiry form */
    .contact-page .form-label {
        font-size: 12px;
    }

    .contact-page .form-control,
    .contact-page .form-select {
        min-height: 45px;
        padding: 11px;
        font-size: 13px;
    }

    .contact-page textarea.form-control {
        min-height: 115px;
    }

    .contact-page .submit-btn {
        min-height: 48px;
        padding: 13px 15px;
    }

    .contact-page .form-alert {
        padding: 11px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }
}

/* Extra-small screens: 320px–375px */
@media (max-width: 375px) {

    .contact-page .contact-hero {
        padding: 35px 0;
    }

    .contact-page .contact-hero h1 {
        font-size: 28px;
    }

    .contact-page .contact-card {
        padding: 17px 12px;
    }

    .contact-page .section-title {
        font-size: 23px;
    }

    .contact-page .detail-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}



/* ==========================================
   SLOW SCROLL REVEAL ANIMATIONS
========================================== */

/* Hero content gently appears on page load */
.contact-page .hero-content {
    animation: contactHeroReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Reveal target default state */
.contact-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(38px);
    transition:
        opacity 1.35s ease,
        transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Visible state */
.contact-page .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Directional reveal options */
.contact-page .reveal-from-left {
    transform: translateX(-35px);
}

.contact-page .reveal-from-right {
    transform: translateX(35px);
}

.contact-page .reveal-from-left.is-revealed,
.contact-page .reveal-from-right.is-revealed {
    transform: translateX(0);
}

/* Contact details appear with a soft stagger */
.contact-page .contact-detail {
    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
}

.contact-page .contact-detail.reveal-on-scroll {
    transform: translateY(24px);
}

.contact-page .contact-detail.reveal-on-scroll.is-revealed {
    transform: translateY(0);
}

/* Form fields softly reveal */
.contact-page .form-card .form-row-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-page .form-card.is-revealed .form-row-reveal {
    opacity: 1;
    transform: translateY(0);
}

@keyframes contactHeroReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: subtle movement and smooth timing */
@media (max-width: 767.98px) {
    .contact-page .reveal-on-scroll {
        transform: translateY(24px);
        transition-duration: 1.1s;
    }

    .contact-page .reveal-from-left,
    .contact-page .reveal-from-right {
        transform: translateY(24px);
    }

    .contact-page .reveal-from-left.is-revealed,
    .contact-page .reveal-from-right.is-revealed {
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .contact-page .hero-content,
    .contact-page .reveal-on-scroll,
    .contact-page .contact-detail,
    .contact-page .form-card .form-row-reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Success Popup Overlay */
.ttk-success-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 25, 20, 0.72);
    backdrop-filter: blur(5px);
}

/* Popup Card */
.ttk-success-popup-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: ttkPopupIn 0.35s ease;
}

.ttk-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 34px;
}

.ttk-success-popup-content h2 {
    margin-bottom: 12px;
    color: #315c2b;
    font-size: 30px;
    font-weight: 700;
}

.ttk-success-popup-content p {
    margin-bottom: 25px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.ttk-popup-close {
    position: absolute;
    top: 10px;
    right: 16px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 32px;
    cursor: pointer;
}

.ttk-popup-button {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    background: #416b2c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ttk-popup-button:hover {
    background: #2e4d20;
}

@keyframes ttkPopupIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .ttk-success-popup-content {
        padding: 35px 22px;
    }

    .ttk-success-popup-content h2 {
        font-size: 26px;
    }
}