/**
 * GoFormed – Floating Buttons, Popup Contact Form & Payment Methods
 * GO&PARTNERS UK LIMITED – Reg. No. 16508115
 */

/* ═══════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════ */
.float-whatsapp {
    position: fixed;
    bottom: 92px;
    right: 22px;
    z-index: 9998;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    overflow: visible;
}
.float-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
}
.float-whatsapp:hover .float-label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.float-whatsapp .float-label {
    position: absolute;
    right: 70px;
    background: #1B2A4A;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.float-whatsapp .float-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1B2A4A;
    border-right: 0;
}

/* Notification badge on WhatsApp */
.float-wa-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E63946;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: 'Inter', sans-serif;
    animation: gfBadgePop 0.4s ease 5.5s both;
    opacity: 0;
}
@keyframes gfBadgePop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* WhatsApp Tooltip Bubble */
.float-wa-tooltip {
    position: fixed;
    bottom: 162px;
    right: 22px;
    z-index: 9997;
    background: #fff;
    border-radius: 12px 12px 0 12px;
    padding: 14px 16px;
    max-width: 230px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #1B2A4A;
    line-height: 1.5;
    animation: gfTooltipIn 0.3s ease;
}
@keyframes gfTooltipIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.float-wa-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
}
.float-wa-tooltip strong { display: block; margin-bottom: 4px; color: #1B2A4A; font-size: 0.85rem; }
.float-wa-tooltip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.float-wa-tooltip-close:hover { color: #1B2A4A; }
.float-wa-tooltip-btn {
    display: inline-block;
    margin-top: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}
.float-wa-tooltip-btn:hover { background: #1DA851; }

/* Pulse animation for WhatsApp */
.float-pulse {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: gfPulse 2.5s ease-out infinite;
    z-index: -1;
}
@keyframes gfPulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ═══════════════════════════════════════════════════
   FLOATING EMAIL / ENQUIRY BUTTON
   ═══════════════════════════════════════════════════ */
.float-email {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9998;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #1B2A4A 0%, #243660 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: visible;
}
.float-email:hover {
    background: linear-gradient(135deg, #8B6F3E 0%, #A07F4A 100%);
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(139, 111, 62, 0.55);
}
.float-email:hover .float-label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.float-email .float-label {
    position: absolute;
    right: 70px;
    background: #8B6F3E;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.float-email .float-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #8B6F3E;
    border-right: 0;
}

/* Mobile: stack more compact */
@media (max-width: 480px) {
    .float-whatsapp { bottom: 86px; right: 16px; width: 56px; height: 56px; }
    .float-email     { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .float-wa-tooltip { right: 12px; bottom: 148px; max-width: 200px; }
    .float-pulse { width: 56px; height: 56px; }
}

/* ═══════════════════════════════════════════════════
   POPUP OVERLAY
   ═══════════════════════════════════════════════════ */
.gf-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 18, 36, 0.78);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(5px);
    animation: gfFadeIn 0.2s ease;
}
@keyframes gfFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.gf-popup-box {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: gfSlideUp 0.28s ease;
    box-shadow: 0 20px 70px rgba(0,0,0,0.32);
}
@keyframes gfSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.gf-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.gf-popup-close:hover { color: #1B2A4A; background: #f0ede6; }
.gf-popup-header { text-align: center; margin-bottom: 20px; }
.gf-popup-header h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.6rem;
    color: #1B2A4A;
    margin: 0 0 6px;
}
.gf-popup-header p { color: #666; font-size: 0.86rem; margin: 0; font-family: 'Inter', sans-serif; }

/* Inquiry type pills */
.gf-popup-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}
.gf-type-pill {
    padding: 7px 14px;
    border: 2px solid #D0C9B8;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    color: #444;
    background: #fff;
    white-space: nowrap;
}
.gf-type-pill:hover, .gf-type-pill.active {
    border-color: #1B2A4A;
    background: #1B2A4A;
    color: #fff;
}

/* Form elements */
.gf-popup-form .gf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .gf-popup-form .gf-form-row { grid-template-columns: 1fr; }
}
.gf-popup-form .gf-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.gf-popup-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1B2A4A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}
.gf-popup-form input,
.gf-popup-form textarea,
.gf-popup-form select {
    border: 2px solid #D0C9B8;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1B2A4A;
    background: #FAFAF8;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.gf-popup-form input:focus,
.gf-popup-form textarea:focus {
    border-color: #1B2A4A;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}
.gf-popup-form textarea { resize: vertical; min-height: 90px; }
.gf-pop-submit {
    background: linear-gradient(135deg, #1B2A4A 0%, #243660 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}
.gf-pop-submit:hover { background: linear-gradient(135deg, #8B6F3E 0%, #A07F4A 100%); }
.gf-pop-submit:active { transform: scale(0.98); }
.gf-pop-submit:disabled { opacity: 0.6; cursor: default; }
.gf-popup-result.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; border-radius: 6px; padding: 14px; }
.gf-popup-result.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 6px; padding: 14px; }
.gf-popup-alt-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 0.82rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}
.btn-whatsapp { background: #25D366 !important; color: #fff !important; border: none !important; }
.btn-whatsapp:hover { background: #20BC5A !important; }

/* ═══════════════════════════════════════════════════
   PAYMENT METHODS GRID (Footer)
   ═══════════════════════════════════════════════════ */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.payment-method-group {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 10px;
    transition: border-color 0.2s;
}
.payment-method-group:hover { border-color: rgba(255,255,255,0.2); }

/* Wise highlighted section */
.payment-wise-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(159,232,112,0.08) 0%, rgba(139,111,62,0.12) 100%);
    border: 1px solid rgba(159,232,112,0.25);
    position: relative;
}
.pm-wise-popular-label {
    color: #9FE870 !important;
    font-weight: 700 !important;
}
.pm-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.pm-icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Payment logo wraps for real SVG brand logos */
.pm-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 4px 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: default;
}
.pm-logo-wrap:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
}
.pm-logo-wrap svg { display: block; }
.pm-logo-amex { padding: 5px 7px; }
.pm-logo-dark { background: rgba(0,0,0,0.3); }
.pm-logo-gpay { background: rgba(255,255,255,0.92); }
.pm-logo-gpay:hover { background: rgba(255,255,255,1); }

/* Text badges for institutional transfer names (no public logos) */
.pm-badge {
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.pm-bacs    { background: #0033A0; color: #fff; }
.pm-chaps   { background: #1B4F72; color: #fff; }
.pm-swift   { background: #17375E; color: #fff; }
.pm-sepa    { background: #003399; color: #fff; }
.pm-crypto  { background: #F7931A; color: #fff; }

/* Wise icon wrap for SVG logo */
.pm-wise-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(159,232,112,0.4));
}
.pm-wise-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.pm-wise-box strong  { font-size: 0.83rem; color: rgba(255,255,255,0.95); display:block; font-family:'Inter',sans-serif; margin-bottom:3px; }
.pm-wise-box small   { font-size: 0.72rem; color: rgba(255,255,255,0.65); font-family:'Inter',sans-serif; line-height:1.5; }
.pm-wise-currencies  { font-size: 0.7rem; color: rgba(255,255,255,0.5); letter-spacing: 0.3px; font-family:'Inter',sans-serif; line-height:1.6; }
.footer-secure-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   FOOTER COMPLIANCE STRIP
   ═══════════════════════════════════════════════════ */
.footer-compliance-strip {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 28px 0;
    margin-top: 28px;
}
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 960px) { .compliance-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .compliance-grid { grid-template-columns: 1fr; } }
.compliance-item {
    display: flex;
    gap: 12px;
}
.compliance-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.compliance-item strong { display: block; color: rgba(255,255,255,0.85); font-size: 0.78rem; margin-bottom: 5px; font-family:'Inter',sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.compliance-item p { font-size: 0.72rem; color: rgba(255,255,255,0.42); line-height: 1.65; margin: 0; font-family:'Inter',sans-serif; }
.compliance-item em { font-style: italic; }
.compliance-item a { color: #8B6F3E; text-decoration: none; }
.compliance-item a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   FOOTER PAYMENT RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .payment-methods-grid { grid-template-columns: 1fr; }
    .payment-wise-highlight { grid-column: 1; }
}

/* ═══════════════════════════════════════════════════
   FOOTER BADGES
   ═══════════════════════════════════════════════════ */
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: rgba(255,255,255,0.65);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.footer-badge:hover { border-color: rgba(255,255,255,0.25); }

/* (Cookie banner CSS removed per request) */

/* ═══════════════════════════════════════════════════
   SKIP LINK (Accessibility)
   ═══════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #1B2A4A;
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════
   NAV DROPDOWN
   ═══════════════════════════════════════════════════ */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #D0C9B8;
    border-radius: 6px;
    min-width: 220px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.14);
    padding: 6px 0;
    z-index: 200;
    list-style: none;
    margin: 0;
    animation: gfFadeIn 0.15s ease;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown li a {
    display: block;
    padding: 9px 16px;
    font-size: 0.85rem;
    color: #1B2A4A;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown li a:hover { background: #F8F6F0; color: #8B6F3E; }
