/* Boldmen Premium Deed Verification Styles */

.bdv-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.bdv-premium-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.bdv-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #e1b12c; /* Boldmen yellow/gold accent */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.bdv-form-group {
    margin-bottom: 1.5rem;
}

.bdv-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.bdv-form-group input[type="text"],
.bdv-form-group input[type="date"],
.bdv-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
}

.bdv-form-group input:focus,
.bdv-form-group textarea:focus {
    outline: none;
    border-color: #e1b12c;
    box-shadow: 0 0 0 3px rgba(225, 177, 44, 0.2);
    background-color: #fff;
}

.bdv-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bdv-btn-primary {
    background-color: #1a1a1a;
    color: #fff;
}

.bdv-btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bdv-btn-secondary {
    background-color: #f1f2f6;
    color: #2f3542;
    border: 1px solid #ced6e0;
}

.bdv-btn-secondary:hover {
    background-color: #dfe4ea;
}

.bdv-btn-danger {
    background-color: #c0392b;
    color: #fff;
    border: none;
}

.bdv-btn-danger:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
}

.bdv-hidden {
    display: none !important;
}

.bdv-mt-4 { margin-top: 2rem; }
.bdv-mt-3 { margin-top: 1.5rem; }
.bdv-mb-2 { margin-bottom: 1rem; }
.bdv-mb-1 { margin-bottom: 0.5rem; }
.bdv-ml-2 { margin-left: 1rem; }
.bdv-d-flex { display: flex; align-items: center; }

/* Result Section */
.bdv-success-msg {
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bdv-printable-section {
    background-color: #fafafa;
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.bdv-printable-inner {
    background: #fff;
    border: 2px solid #000;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 300px;
    margin: 0 auto;
    font-family: inherit;
}

.bdv-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.bdv-ref-title {
    font-size: 0.9rem;
    color: #666;
}

.bdv-ref-code {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #333;
}

.bdv-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.bdv-scan-text {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* Verification Section */
.bdv-loader {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.bdv-verified-badge {
    display: inline-block;
    background-color: #2ed573;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.bdv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.bdv-table th, .bdv-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.bdv-table th {
    width: 35%;
    font-weight: 600;
    color: #555;
    background-color: #fafafa;
}

.bdv-table td {
    color: #222;
}

.bdv-map-container {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fafafa;
}

.bdv-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.bdv-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Institutional Full Screen Wrapper */
.bdv-fullscreen-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0A192F !important;
    z-index: 9999999 !important;
    overflow-y: auto !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
}

.bdv-fullscreen-wrapper .bdv-container {
    background-color: #112240; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid #233554;
    color: #a8b2d1;
    margin: 0; 
    width: 100%;
    max-width: 900px;
}

.bdv-fullscreen-wrapper .bdv-title {
    color: #ccd6f6;
    border-bottom: 2px solid #e1b12c;
}

.bdv-fullscreen-wrapper .bdv-form-group label {
    color: #ccd6f6;
}

.bdv-fullscreen-wrapper input[type="text"],
.bdv-fullscreen-wrapper input[type="date"],
.bdv-fullscreen-wrapper input[type="url"],
.bdv-fullscreen-wrapper textarea {
    background-color: #0A192F;
    border: 1px solid #233554;
    color: #e6f1ff;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.bdv-fullscreen-wrapper input:focus,
.bdv-fullscreen-wrapper textarea:focus {
    border-color: #e1b12c;
    box-shadow: 0 0 0 3px rgba(225, 177, 44, 0.2);
    background-color: #0A192F;
    color: #e6f1ff;
    outline: none;
}

/* Fix for autocomplete / autofill background color */
.bdv-fullscreen-wrapper input:-webkit-autofill,
.bdv-fullscreen-wrapper input:-webkit-autofill:hover, 
.bdv-fullscreen-wrapper input:-webkit-autofill:focus, 
.bdv-fullscreen-wrapper input:-webkit-autofill:active,
.bdv-fullscreen-wrapper textarea:-webkit-autofill,
.bdv-fullscreen-wrapper textarea:-webkit-autofill:hover,
.bdv-fullscreen-wrapper textarea:-webkit-autofill:focus,
.bdv-fullscreen-wrapper textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0A192F inset !important;
    -webkit-text-fill-color: #e6f1ff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.bdv-fullscreen-wrapper .bdv-table th {
    background-color: #0A192F;
    color: #e1b12c;
    border-bottom: 1px solid #233554;
    width: 25%;
    min-width: 140px;
    padding-right: 1.5rem;
}

.bdv-fullscreen-wrapper .bdv-table td {
    color: #a8b2d1;
    border-bottom: 1px solid #233554;
}

.bdv-fullscreen-wrapper .bdv-link {
    color: #64ffda;
    text-decoration: none;
}

.bdv-fullscreen-wrapper .bdv-link:hover {
    text-decoration: underline;
}

.bdv-fullscreen-wrapper .bdv-map-container {
    background-color: #0A192F;
    border: 1px solid #233554;
}

.bdv-mode-toggle {
    display: flex;
    gap: 10px;
}

/* Phone number input styling */
.bdv-fullscreen-wrapper input[type="tel"] {
    background-color: #0A192F;
    border: 1px solid #233554;
    color: #e6f1ff;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.bdv-fullscreen-wrapper input[type="tel"]:focus {
    border-color: #e1b12c;
    box-shadow: 0 0 0 3px rgba(225, 177, 44, 0.2);
    background-color: #0A192F;
    color: #e6f1ff;
    outline: none;
}

.bdv-fullscreen-wrapper input[type="tel"]:-webkit-autofill,
.bdv-fullscreen-wrapper input[type="tel"]:-webkit-autofill:hover,
.bdv-fullscreen-wrapper input[type="tel"]:-webkit-autofill:focus,
.bdv-fullscreen-wrapper input[type="tel"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0A192F inset !important;
    -webkit-text-fill-color: #e6f1ff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* WhatsApp link styling */
.bdv-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.bdv-whatsapp-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===== BOLDMEN TERMINAL INFO SECTION ===== */

/* Raise ticker above the fullscreen wrapper (z-index: 9999999) */
#bmt-ticker-container {
    z-index: 99999999 !important;
}

#bmt-ticker-reopen {
    z-index: 99999999 !important;
}

/* Bottom padding so ticker bar doesn't overlap content */
.bdv-fullscreen-wrapper {
    padding-bottom: 70px !important;
}

/* Entrance animation */
@keyframes bdv-fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Banner */
.bdv-terminal-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(225, 177, 44, 0.06) 0%, rgba(10, 25, 47, 0.95) 100%);
    border: 1px solid rgba(225, 177, 44, 0.18);
    border-left: 3px solid #e1b12c;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    animation: bdv-fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.3s;
}

/* Subtle shimmer overlay */
.bdv-terminal-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 177, 44, 0.04), transparent);
    animation: bdv-shimmer 4s ease-in-out infinite;
}

@keyframes bdv-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.bdv-terminal-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 177, 44, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(225, 177, 44, 0.15);
}

.bdv-terminal-info-content {
    flex: 1;
    min-width: 0;
}

.bdv-terminal-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e1b12c;
    margin: 0 0 0.4rem 0;
    letter-spacing: 0.2px;
}

.bdv-terminal-info-text {
    font-size: 0.88rem;
    color: #8892b0;
    line-height: 1.6;
    margin: 0;
}

.bdv-terminal-info-text strong {
    color: #ccd6f6;
}

/* CTA Button */
.bdv-terminal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.25rem;
    padding: 14px 28px;
    background: linear-gradient(135deg, #e1b12c 0%, #d4a017 100%);
    color: #0A192F;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(225, 177, 44, 0.2);
    animation: bdv-fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.5s;
}

.bdv-terminal-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bdv-terminal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 177, 44, 0.35), 0 0 40px rgba(225, 177, 44, 0.1);
    background: linear-gradient(135deg, #f0c040 0%, #e1b12c 100%);
    color: #0A192F;
    text-decoration: none;
}

.bdv-terminal-cta:hover::before {
    left: 100%;
}

.bdv-terminal-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(225, 177, 44, 0.2);
}

.bdv-terminal-cta-text {
    position: relative;
    z-index: 1;
}

.bdv-terminal-cta-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.bdv-terminal-cta:hover .bdv-terminal-cta-arrow {
    transform: translateX(4px);
}


/* ===== MOBILE RESPONSIVE: Stacked Card Layout ===== */
@media (max-width: 768px) {
    .bdv-fullscreen-wrapper {
        padding: 1rem 0.5rem;
        padding-bottom: 60px !important;
    }

    .bdv-fullscreen-wrapper .bdv-container {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .bdv-fullscreen-wrapper .bdv-title {
        font-size: 1.4rem;
    }

    /* Convert table to stacked card layout on mobile */
    .bdv-fullscreen-wrapper .bdv-table,
    .bdv-fullscreen-wrapper .bdv-table thead,
    .bdv-fullscreen-wrapper .bdv-table tbody,
    .bdv-fullscreen-wrapper .bdv-table tr,
    .bdv-fullscreen-wrapper .bdv-table th,
    .bdv-fullscreen-wrapper .bdv-table td {
        display: block;
        width: 100%;
    }

    .bdv-fullscreen-wrapper .bdv-table tr {
        margin-bottom: 0.75rem;
        border-bottom: 1px solid #233554;
        padding-bottom: 0.75rem;
    }

    .bdv-fullscreen-wrapper .bdv-table tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .bdv-fullscreen-wrapper .bdv-table th {
        padding: 0.4rem 0;
        border-bottom: none;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: unset;
        width: 100%;
    }

    .bdv-fullscreen-wrapper .bdv-table td {
        padding: 0.25rem 0 0.5rem 0;
        border-bottom: none;
        font-size: 0.95rem;
        color: #ccd6f6;
    }

    .bdv-fullscreen-wrapper .bdv-map-container {
        padding: 0.75rem;
    }

    .bdv-fullscreen-wrapper .bdv-map-container iframe {
        height: 220px;
    }

    .bdv-fullscreen-wrapper .bdv-verified-badge {
        font-size: 0.75rem;
    }

    .bdv-fullscreen-wrapper .bdv-verification-success h3 {
        font-size: 1.1rem;
        color: #ccd6f6;
    }

    /* Terminal info section - mobile */
    .bdv-terminal-info {
        flex-direction: column;
        gap: 12px;
        padding: 1.2rem;
        margin-top: 2rem;
    }

    .bdv-terminal-info-icon {
        width: 38px;
        height: 38px;
    }

    .bdv-terminal-info-icon svg {
        width: 22px;
        height: 22px;
    }

    .bdv-terminal-info-title {
        font-size: 0.92rem;
    }

    .bdv-terminal-info-text {
        font-size: 0.82rem;
    }

    /* CTA - mobile */
    .bdv-terminal-cta {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
