/* ============================================
   CONTACT PAGE — Logo theme: navy #1D2B53 + gold #C58F2F
   ============================================ */

.contact-page {
    font-family: 'Outfit', sans-serif;
    background-color: #eef1f7;
    background-image:
        radial-gradient(ellipse 130% 85% at 50% -28%, rgba(29, 43, 83, 0.1) 0%, transparent 54%),
        radial-gradient(ellipse 65% 50% at 100% 8%, rgba(197, 143, 47, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 0% 92%, rgba(29, 43, 83, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f4f6fa 0%, #e8ecf3 50%, #f0f2f7 100%);
    background-attachment: fixed;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Hero — match Training page hero (logo colours) */
.contact-page .training-hero {
    background:
        radial-gradient(ellipse 100% 82% at 50% 0%, rgba(197, 143, 47, 0.2) 0%, transparent 52%),
        radial-gradient(ellipse 52% 42% at 92% 86%, rgba(197, 143, 47, 0.12) 0%, transparent 55%),
        linear-gradient(168deg, #151d38 0%, #1d2b53 44%, #182445 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-page .training-hero::before {
    height: 5px;
    background: linear-gradient(90deg,
        transparent 0%,
        #1d2b53 18%,
        #c58f2f 50%,
        #1d2b53 82%,
        transparent 100%);
}

.contact-page .training-hero::after {
    background: radial-gradient(
        ellipse 90% 70% at 50% 0%,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(197, 143, 47, 0.1) 38%,
        transparent 72%
    );
}

.contact-page .training-hero .training-hero-content::before {
    background-size: 100% 100%;
    background-image: radial-gradient(
        ellipse 95% 75% at 50% 42%,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(197, 143, 47, 0.07) 40%,
        transparent 68%
    );
}

.contact-page .training-hero-accent {
    color: #d9ae52;
}

.contact-page .training-hero-accent::after {
    background: linear-gradient(90deg, #1d2b53, #c58f2f);
    opacity: 0.95;
}

.contact-page .training-hero-badge {
    border: 1px solid rgba(197, 143, 47, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(29, 43, 83, 0.45) 100%);
}

.contact-page .training-hero-badge::before {
    background: #c58f2f;
    box-shadow: 0 0 12px rgba(197, 143, 47, 0.55);
}

.contact-page .training-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.contact-page .training-hero-content h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Contact section (replaces default training-list course styling) */
.contact-page .training-list.cp-contact-section {
    padding: clamp(3rem, 6vw, 4.5rem) clamp(16px, 3vw, 48px) clamp(4rem, 8vw, 5rem);
    max-width: min(1200px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-page .training-list.cp-contact-section::before {
    display: none;
}

.cp-contact-inner {
    position: relative;
    z-index: 1;
}

.cp-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}

.cp-details-panel,
.cp-location-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(29, 43, 83, 0.12);
    box-shadow: 0 8px 32px rgba(29, 43, 83, 0.08);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cp-details-heading,
.cp-location-title {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: #1d2b53;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(197, 143, 47, 0.45);
    font-family: 'Libre Baskerville', Georgia, serif;
}

.cp-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-details-list li {
    margin-bottom: 0.65rem;
}

.cp-details-list li:last-child {
    margin-bottom: 0;
}

.cp-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(29, 43, 83, 0.08);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cp-detail-row:hover {
    background: rgba(29, 43, 83, 0.04);
    border-color: rgba(197, 143, 47, 0.35);
    box-shadow: 0 4px 16px rgba(29, 43, 83, 0.06);
}

.cp-detail-icon {
    flex-shrink: 0;
    color: #c58f2f;
    margin-top: 2px;
}

.cp-detail-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.cp-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1d2b53;
    opacity: 0.85;
}

.cp-detail-value,
.cp-detail-value-group {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.45;
}

.cp-detail-value-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cp-detail-chevron {
    flex-shrink: 0;
    color: #c58f2f;
    font-weight: 700;
    opacity: 0.85;
}

.cp-address-block {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: rgba(29, 43, 83, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(197, 143, 47, 0.2);
}

.cp-address-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d2b53;
    margin: 0 0 0.4rem;
}

.cp-address-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #333;
}

.cp-location-note {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Tighter heading/note + footer gap so the map iframe gains height (panel box size unchanged) */
.cp-location-panel .cp-location-title {
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
}

.cp-location-panel .cp-location-note {
    margin-bottom: 0.45rem;
}

.cp-map-frame {
    flex: 1 1 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 83, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    min-width: 0;
}

.cp-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
    display: block;
}

.cp-map-footer-bar {
    --cp-map-footer-font-size: clamp(0.50rem, 0.90vw, 0.60rem);
    margin-top: auto;
    padding-top: 0.5rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.5rem;
}

.cp-map-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    flex-shrink: 0;
    align-self: center;
    padding: 0.35em 0.75em;
    background: #1d2b53;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--cp-map-footer-font-size);
    border-radius: 6px;
    line-height: 1.25;
    transition: background 0.2s, transform 0.15s;
}

.cp-map-cta svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.cp-map-cta:hover {
    background: #152a4a;
    transform: translateY(-1px);
}

.cp-map-attribution {
    margin: 0;
    font-size: var(--cp-map-footer-font-size);
    color: #000;
    line-height: 1.25;
    text-align: right;
    min-width: 0;
    align-self: center;
}

@media (max-width: 900px) {
    .cp-contact-layout {
        grid-template-columns: 1fr;
    }

    .cp-map-frame {
        flex: 0 1 auto;
        aspect-ratio: 16 / 10;
        min-height: 220px;
    }

    .cp-map-footer-bar {
        margin-top: 1rem;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .cp-map-attribution {
        text-align: left;
    }

    .cp-map-cta {
        align-self: flex-start;
    }
}

/* Hero wrapper with background */
.cp-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    transform: scale(1.08);
}

.cp-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.cp-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 60px;
    width: 100%;
    text-align: center;
}

.cp-section > .cp-containers {
    text-align: left;
}

/* Centered title */
.cp-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 40px;
    letter-spacing: -0.02em;
    padding: 12px 24px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.cp-title span {
    color: var(--brand-primary);
}

/* Two containers side by side */
.cp-containers {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
}

@media (max-width: 900px) {
    .cp-containers {
        grid-template-columns: 1fr;
    }
}

/* ---- Container 1: Frosted white glass panel ---- */
.cp-info-container {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.cp-info-block {
    margin-bottom: 24px;
}

.cp-info-block:last-child {
    margin-bottom: 0;
}

.cp-info-block h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cp-block-icon {
    font-size: 18px;
}

.cp-info-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
    margin: 24px 0;
    border-radius: 1px;
}

.cp-office-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.cp-office-card:last-child {
    margin-bottom: 0;
}

.cp-office-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.cp-office-card p {
    font-size: 16px;
    line-height: 1.55;
    color: #333;
    margin: 0;
}

.cp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-list li {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cp-list li:last-child {
    margin-bottom: 0;
}

.cp-list a {
    font-weight: 600;
    font-size: 17px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.cp-list a:hover {
    color: var(--brand-primary);
}

.cp-list li span {
    font-size: 15px;
    color: #555;
}

/* ---- Container 2: Frosted white glass form panel ---- */
.cp-form-container {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.cp-form-container h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.cp-form-container form {
    margin: 0;
    max-width: 100%;
}

.cp-form-container label {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.cp-form-container input,
.cp-form-container textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cp-form-container input::placeholder,
.cp-form-container textarea::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.cp-form-container input:focus,
.cp-form-container textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(180, 74, 63, 0.25);
}

.cp-form-container textarea {
    resize: vertical;
    min-height: 120px;
}

.cp-btn {
    margin-top: 8px;
    padding: 16px 32px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cp-btn::after {
    content: '→';
    font-size: 1.1em;
}

.cp-btn:hover {
    background: var(--brand-dark);
}

.cp-btn:active {
    transform: translateY(1px);
}

.cp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Popup */
.cp-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.cp-popup.active {
    opacity: 1;
    visibility: visible;
}

.cp-popup-inner {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cp-popup-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.cp-popup-inner h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.cp-popup-inner p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.cp-popup-btn {
    padding: 12px 28px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cp-popup-btn:hover {
    background: var(--brand-dark);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
}
