/* ========================================
   CONTACT PAGE STYLES (Custom HTML Redesign)
   ======================================== */


/* Hide page title and breadcrumb */
.page-header,
.entry-header {
    display: none !important;
}

.page-header {
    display: none !important;
}

/* ----------------------------------------
   1. PAGE CANVAS overrides
   ---------------------------------------- */

body.page-id-101 #main,
body.page-id-101 #content-wrap,
body.page-id-101 #primary,
body.page-id-101 .content-area,
body.page-id-101 .entry-content,
body.page-id-101 .elementor-section.elementor-top-section {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-id-101 {
    overflow-x: hidden;
}


body.page-id-101 #primary {
    border: 0 !important;
}

.safebox2u-contact-page {
    background: #f8faf9;
    color: #3d4f46;
    font-family: var(--font-body);
    overflow: hidden;
    padding-bottom: 60px;
}

.safebox2u-contact-page *,
.safebox2u-contact-page *::before,
.safebox2u-contact-page *::after {
    box-sizing: border-box;
}




/* ----------------------------------------
   ANIMATION KEYFRAMES
   ---------------------------------------- */
@keyframes sc-ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.08) translate(-1.5%, 0.8%);
    }

    100% {
        transform: scale(1.12) translate(1%, -0.5%);
    }
}

@keyframes sc-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sc-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ----------------------------------------
   2. HERO HEADER
   ---------------------------------------- */
.safebox2u-contact-hero {
    color: #ffffff;
    overflow: hidden;
    /* Clips the Ken Burns pseudo-element */
    padding: 90px 30px 240px;
    position: relative;
    text-align: center;
}

/* Ken Burns: animated background sits behind the gradient overlay */
.safebox2u-contact-hero::before {
    animation: sc-ken-burns 20s ease-in-out 1 forwards;
    background: url('https://safebox2u.com.my/wp-content/uploads/2026/05/hero-contact-page-2244x701-1.webp') center 20% / cover no-repeat;
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center center;
    will-change: transform;
    z-index: 0;
}

/* Gradient overlay sits on top of the image, below the text */
.safebox2u-contact-hero::after {
    background: linear-gradient(90deg, rgba(30, 64, 48, 0.94) 0%, rgba(45, 90, 63, 0.88) 48%, rgba(45, 90, 63, 0.5) 100%);
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.safebox2u-contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    /* Sits above both pseudo-elements */
    z-index: 2;
}

/* Kicker: fades in first + floats gently */
.safebox2u-contact-kicker {
    animation:
        sc-fade-up 0.7s ease both,
        sc-float 4s ease-in-out 0.7s 1 forwards;
    color: #FFD700;
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* H1: fades in 0.3s after the kicker */
.safebox2u-contact-hero h1 {
    animation: sc-fade-up 0.7s 0.3s ease both;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0 0 18px 0;
}

/* Paragraph: fades in last */
.safebox2u-contact-hero p {
    animation: sc-fade-up 0.7s 0.6s ease both;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.6;
    margin: 0;
}

/* ----------------------------------------
   3. FLOATING CARDS GRID
   ---------------------------------------- */
.safebox2u-contact-cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: -60px auto 60px;
    /* Pulls cards up over the hero */
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

.safebox2u-contact-card {
    background: #ffffff;
    border: 1px solid #e8ede9;
    border-top: 5px solid #FFD700;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 38, 26, 0.1);
    padding: 35px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safebox2u-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 38, 26, 0.15);
}

.safebox2u-contact-card-icon {
    align-items: center;
    background: linear-gradient(135deg, #e8f5e9, #fff7b8);
    border-radius: 12px;
    color: #3F6A54;
    display: flex;
    height: 60px;
    justify-content: center;
    margin-bottom: 20px;
    width: 60px;
}

.safebox2u-contact-card h3 {
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.safebox2u-contact-card p {
    color: #5a6b62;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.safebox2u-contact-card a {
    color: #3F6A54;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.safebox2u-contact-card a:hover {
    color: #FFD700;
}

/* Hours List */
.safebox2u-contact-hours {
    background: #f8faf9;
    border: 1px solid #e8ede9;
    border-radius: 8px;
    margin-top: 20px;
    padding: 16px;
}

.safebox2u-contact-hours ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.safebox2u-contact-hours li {
    border-bottom: 1px dashed #dfe8df;
    color: #5a6b62;
    font-size: 14px;
    padding: 8px 0;
    line-height: 1.4;
}

.safebox2u-contact-hours li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.safebox2u-contact-hours li:first-child {
    padding-top: 0;
}

.safebox2u-contact-hours li span {
    color: #1a1a1a;
    display: inline-block;
    font-weight: 700;
    width: 90px;
}

.safebox2u-contact-hours li small {
    color: #7a8a80;
    display: block;
    margin-top: 2px;
    padding-left: 90px;
}

/* Email & WhatsApp Links */
.safebox2u-contact-email-link {
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    border-bottom: 2px solid #3F6A54;
    padding-bottom: 2px;
}

.safebox2u-contact-whatsapp-btn {
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #1fb855 100%) !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    color: #ffffff !important;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    width: 100%;
}

.safebox2u-contact-whatsapp-btn:hover {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* ----------------------------------------
   4. FORM & MAP SPLIT SECTION
   ---------------------------------------- */
.safebox2u-contact-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px 40px;
}

.safebox2u-contact-split h2 {
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.safebox2u-contact-split-desc {
    color: #5a6b62;
    font-size: 16px;
    margin: 0 0 24px 0;
}

/* ----------------------------------------
   5. NINJA FORMS WRAPPER (Fixed Overflow)
   ---------------------------------------- */
.sc-form-wrap {
    background: #ffffff;
    border: 1px solid #e8ede9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 38, 26, 0.06);
    padding: 35px;
}

.sc-form-wrap .nf-form-wrap,
.sc-form-wrap .nf-form-fields-wrap,
.sc-form-wrap .nf-field-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

.sc-form-wrap .nf-field-wrap {
    margin-bottom: 20px !important;
}

.sc-form-wrap .nf-field-label label,
.sc-form-wrap .nf-field-label span {
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.sc-form-wrap .nf-input,
.sc-form-wrap .nf-field-element input,
.sc-form-wrap .nf-field-element select,
.sc-form-wrap .nf-field-element textarea {
    background: #f8faf9 !important;
    border: 1px solid #dfe8df !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    color: #2c3e50 !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    padding: 14px 16px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.sc-form-wrap .nf-input:focus,
.sc-form-wrap .nf-field-element input:focus,
.sc-form-wrap .nf-field-element textarea:focus {
    background: #ffffff !important;
    border-color: #3F6A54 !important;
    box-shadow: 0 0 0 4px rgba(63, 106, 84, 0.1) !important;
    outline: none !important;
}

.sc-form-wrap .nf-field-element textarea {
    min-height: 140px !important;
}

.sc-form-wrap .nf-field-submit-btn,
.sc-form-wrap input[type="submit"] {
    background: linear-gradient(135deg, #ffe566 0%, #FFD700 45%, #e6a800 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.32) !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 16px 40px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.sc-form-wrap .nf-field-submit-btn:hover {
    background: linear-gradient(135deg, #ffd200 0%, #e6a800 100%) !important;
    box-shadow: 0 12px 32px rgba(255, 180, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.sc-form-wrap p {
    margin-bottom: 0 !important;
}

.sc-form-wrap .nf-field-wrap p {
    margin-bottom: 10px !important;
}

/* ----------------------------------------
   6. MAP SECTION
   ---------------------------------------- */
.sc-map-wrap {
    background: #eef3f0;
    border: 1px solid #e8ede9;
    border-radius: 12px;
    overflow: hidden;
    height: calc(100% - 70px);
    /* Fill space beneath heading */
    min-height: 400px;
}

.sc-map-wrap iframe {
    border: none;
    display: block;
    height: 100%;
    min-height: 400px;
    width: 100%;
}

/* ----------------------------------------
   7. MOBILE RESPONSIVE
   ---------------------------------------- */
@media (max-width: 992px) {
    .safebox2u-contact-cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .safebox2u-contact-hero {
        padding: 70px 20px 140px;
    }

    .safebox2u-contact-hero h1 {
        font-size: 36px;
    }

    .safebox2u-contact-cards-container {
        grid-template-columns: minmax(0, 1fr);
        margin-top: -90px;
    }

    .safebox2u-contact-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .sc-form-wrap {
        padding: 25px 20px;
    }

    .sc-map-wrap {
        height: auto;
    }
}