/**
 * Beyond the Uniform (BTU) Africa Summit - Contact Page Styling
 * Exact layout and sizing strictly matching the official mockup design at 1440px viewport.
 */

/* =========================================================================
   0. PAGE WRAPPER & CONTAINER
   ========================================================================= */
.btu-contact-page {
    padding-top: 88px; /* Clearance for fixed white header */
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btu-contact-container {
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* =========================================================================
   1. BANNER SECTION (Height ~220px, left-aligned starting at 1240px container edge)
   ========================================================================= */
.btu-contact-banner {
    position: relative;
    height: 220px;
    min-height: 220px;
    background-color: #061122;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #ffffff;
    box-sizing: border-box;
}

/* Left Edge Curved Ribbons (Gold and Green) */
.btu-banner-left-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Right Edge Faint Gold Ribbon */
.btu-banner-right-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.28;
}

/* Right 55% Photo Panel with Independence Arch, Skyline & Palms */
.btu-banner-arch-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.btu-banner-arch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 85% 38%; /* Shows full arch, black star, skyline and palms without cropping */
    display: block;
}

.btu-banner-arch-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        #061122 0%, 
        rgba(6, 17, 34, 0.98) 16%, 
        rgba(6, 17, 34, 0.65) 42%, 
        rgba(6, 17, 34, 0.15) 75%, 
        rgba(6, 17, 34, 0.35) 100%
    );
    pointer-events: none;
}

/* Namespaced Content Block (Prevents collision with btu-banner.css text-align: center) */
.btu-contact-banner-content {
    position: relative;
    z-index: 5;
    max-width: 640px;
    text-align: left !important;
    margin: 0 !important;
    padding: 0;
}

.btu-contact-banner-content::before {
    display: none !important; /* Neutralize any inherited pseudo-gradients */
}

.btu-contact-banner-content .btu-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 6px;
    text-align: left;
}

.btu-contact-banner-content .btu-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.btu-contact-banner-content .btu-breadcrumb a:hover {
    color: #e5a83b;
}

.btu-contact-banner-content .btu-breadcrumb .sep {
    color: #64748b;
    font-size: 12px;
}

.btu-contact-banner-content .btu-breadcrumb .active-crumb {
    color: #e5a83b;
    font-weight: 600;
}

.btu-contact-banner-content .btu-banner-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    text-align: left;
    letter-spacing: -0.5px;
}

.btu-contact-banner-content .btu-banner-title .gold-accent {
    color: #e5a83b;
}

.btu-contact-banner-content .btu-banner-desc {
    font-size: 18px;
    line-height: 1.48;
    color: #cbd5e1;
    margin: 0 0 12px;
    max-width: 640px;
    font-weight: 400;
    text-align: left;
}

.btu-contact-banner-content .btu-banner-gold-line {
    width: 52px;
    height: 3px;
    background: #e5a83b;
    border-radius: 2px;
    margin: 0;
}

/* =========================================================================
   2. MAIN ROW: TWO CARDS SIDE BY SIDE (1.15fr : 1fr)
   ========================================================================= */
.btu-main-section {
    padding: 28px 0 20px;
}

.btu-main-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Base Card Styling */
.btu-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.btu-card-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.btu-card-badge {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e5a83b;
}

.btu-card-badge-line {
    width: 22px;
    height: 2px;
    background: #e5a83b;
    border-radius: 1px;
}

.btu-card-title {
    font-size: 25px;
    font-weight: 800;
    color: #0b192c;
    line-height: 1.2;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.btu-card-subtitle {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 18px;
}

/* Field Grid inside Form Card */
.btu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.btu-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.btu-form-group.full-width {
    margin-bottom: 14px;
}

.btu-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.btu-form-label .req {
    color: #e11d48;
    margin-left: 3px;
}

.btu-form-control {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 8px 14px;
    font-size: 15px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.btu-form-control::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.btu-form-control:focus {
    outline: none;
    border-color: #e5a83b;
    box-shadow: 0 0 0 3px rgba(229, 168, 59, 0.22);
}

.btu-form-control.is-invalid {
    border-color: #e11d48 !important;
    background-color: #fff1f2;
}

select.btu-form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    padding-right: 36px;
    cursor: pointer;
}

/* Phone input group: 110px flag/code + number input taking the rest */
.btu-phone-input-wrap {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btu-phone-input-wrap:focus-within {
    border-color: #e5a83b;
    box-shadow: 0 0 0 3px rgba(229, 168, 59, 0.22);
}

.btu-phone-addon {
    width: 100px;
    flex: 0 0 100px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px 0 8px;
    background: #f8fafc;
    border-right: 1.5px solid #e2e8f0;
    box-sizing: border-box;
}

.btu-flag-gh {
    width: 18px;
    height: 12px;
    border-radius: 1px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    background: linear-gradient(#cf142b 33.3%, #ffdf00 33.3%, #ffdf00 66.6%, #006b3f 66.6%);
    position: relative;
}

.btu-flag-gh::after {
    content: "★";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 7px;
    line-height: 1;
}

.btu-phone-addon select {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.btu-phone-number-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none !important;
    padding: 0 12px;
    font-size: 14.5px;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
}

.btu-phone-number-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

/* Textarea & Counter */
textarea.btu-form-control {
    height: 115px;
    resize: vertical;
    padding: 10px 14px;
    line-height: 1.5;
}

.btu-counter-row {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 6px;
    margin-bottom: 2px;
}

.btu-field-error {
    font-size: 11.5px;
    color: #e11d48;
    margin-top: 4px;
    font-weight: 600;
}

/* Send Message Button (about 210px wide, not full width) */
.btu-btn-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 4px;
}

.btu-send-btn {
    width: 210px;
    height: 44px;
    border-radius: 8px;
    background: #e5a83b;
    color: #071224;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(229, 168, 59, 0.35);
    transition: all 0.2s ease;
}

.btu-send-btn:hover:not(:disabled) {
    background: #d49729;
    color: #000000;
    transform: translateY(-1px);
}

.btu-send-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.btu-form-privacy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

/* =========================================================================
   RIGHT CARD: LET'S CONNECT (List ~65% : Photo Panel ~30% / 170px)
   ========================================================================= */
.btu-connect-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

.btu-connect-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.btu-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.btu-channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #01472a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btu-channel-info {
    flex: 1;
    min-width: 0;
}

.btu-channel-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.btu-channel-val {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.btu-channel-val a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btu-channel-val a:hover {
    color: #e5a83b;
}

.btu-channel-val .btu-email-link {
    font-size: 14px;
    white-space: nowrap;
    display: block;
    line-height: 1.35;
}

.btu-channel-val .btu-sub-link {
    display: block;
    margin-top: 3px;
    font-size: 14.5px;
}

.btu-channel-note {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.35;
}

/* Photo Panel on Right (about 170px width, full height, rounded) */
.btu-photo-panel {
    width: 170px;
    flex: 0 0 170px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 16px;
    background-color: #081224;
    background-image: url('../images/resource/contact-phone-sunset.jpg');
    background-size: cover;
    background-position: center center;
    box-sizing: border-box;
}

.btu-photo-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(7, 18, 36, 0.08) 0%, 
        rgba(7, 18, 36, 0.38) 45%, 
        rgba(7, 18, 36, 0.95) 100%
    );
    z-index: 1;
}

.btu-photo-panel-text {
    position: relative;
    z-index: 2;
}

.btu-photo-serif {
    font-family: 'Playfair Display', Georgia, Cambria, serif;
    font-size: 20px;
    line-height: 1.22;
    color: #ffffff;
    font-weight: 700;
}

.btu-photo-serif .gold-text {
    color: #e5a83b;
}

/* =========================================================================
   3. SECOND ROW: MAP (0.85fr) & OTHER WAYS (1.15fr)
   ========================================================================= */
.btu-second-section {
    padding: 0 0 45px;
}

.btu-second-row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px;
    align-items: stretch;
}

/* Map Card */
.btu-map-card {
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.btu-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: saturate(1.1) contrast(1.05);
}

/* Top-Left Floating Map Badge */
.btu-map-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
}

.btu-map-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #01472a;
    color: #e5a83b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btu-map-badge-city {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.btu-map-badge-venue {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
}

/* Other Ways to Reach Us Panel */
.btu-other-panel {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 16px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.btu-other-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.btu-other-heading {
    font-size: 17px;
    font-weight: 800;
    color: #0b192c;
    margin: 0;
    line-height: 1.2;
}

.btu-other-head-line {
    width: 26px;
    height: 2px;
    background: #e5a83b;
    border-radius: 1px;
}

.btu-other-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    flex: 1;
    min-width: 0;
}

.btu-other-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.btu-other-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(1, 71, 42, 0.08);
    border-color: #86efac;
}

.btu-other-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.btu-other-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.btu-other-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 6px;
    min-height: 2.5em; /* Allows up to 2 lines cleanly */
}

.btu-other-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btu-other-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding-top: 4px;
}

/* Success State Box */
.btu-success-box {
    text-align: center;
    padding: 30px 15px;
}

.btu-success-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

/* =========================================================================
   4. RESPONSIVE BREAKPOINTS
   ========================================================================= */

/* Below 1320px: show the four cards as a 2x2 grid */
@media (max-width: 1320px) {
    .btu-other-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Below 1280px (including 1240px wide viewport): 
   Shrink photo panel slightly before breaking email address so nowrap fits cleanly */
@media (max-width: 1280px) {
    .btu-photo-panel {
        width: 145px;
        flex: 0 0 145px;
        padding: 18px 12px;
    }
    .btu-photo-serif {
        font-size: 17px;
    }
}

/* Below 1024px: the main row and second row each become one column */
@media (max-width: 1023px) {
    .btu-main-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btu-second-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btu-other-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .btu-photo-panel {
        width: 170px;
        flex: 0 0 170px;
    }

    .btu-contact-banner-content .btu-banner-title {
        font-size: 44px;
    }
}

/* Below 640px: single column */
@media (max-width: 639px) {
    .btu-contact-page {
        padding-top: 80px;
    }

    .btu-contact-banner {
        height: auto;
        min-height: 200px;
        padding: 24px 0;
    }

    .btu-banner-arch-wrap {
        width: 100%;
        opacity: 0.25;
    }

    .btu-contact-banner-content .btu-banner-title {
        font-size: 36px;
    }

    .btu-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .btu-connect-inner {
        flex-direction: column;
        gap: 22px;
    }

    .btu-connect-list {
        width: 100%;
        flex: auto;
    }

    .btu-photo-panel {
        width: 100%;
        flex: auto;
        min-height: 240px;
    }

    .btu-other-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btu-send-btn {
        width: 100%;
    }
}
