/* Banzik V9 - Component Styles */

/* Navigation Components */
.nav-blur {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    transition: all 0.3s ease;
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.sticky-nav .max-w-7xl {
    position: relative;
}

.nav-link {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Feature Card Components */
.feature-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 80px rgba(15, 26, 46, 0.25);
}

/* Testimonial Components - Static display */
.testimonial {
    display: none;
    opacity: 1;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background-color: var(--accent);
}

/* Button Components */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(15, 26, 46, 0.2);
    min-height: 44px;
    min-width: 120px;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 26, 46, 0.3);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 26, 46, 0.1);
    min-height: 44px;
    min-width: 120px;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 26, 46, 0.2);
}

/* Card Components */
.service-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(203, 213, 225, 0.2);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 80px rgba(15, 26, 46, 0.25);
}

@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .service-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 15px 40px rgba(15, 26, 46, 0.15);
    }
}

.leadership-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 80px rgba(15, 26, 46, 0.25);
}

.premium-border {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--accent), var(--accent-light)) border-box;
    border: 2px solid transparent;
}

/* Avatar Components */
.avatar-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(15, 26, 46, 0.2);
}

/* Icon Components */
.icon-wrapper {
    background: linear-gradient(135deg, rgba(15, 26, 46, 0.1), rgba(28, 39, 60, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-hover:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    transform: scale(1.1);
}

/* Status Indicator Components - Removed from homepage */

/* Counter Components */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    transition: all 0.3s ease;
}

/* Mobile Menu Components */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

.mobile-menu-item {
    display: block;
    padding: 16px 0;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(203, 213, 225, 0.2);
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    color: var(--primary);
    background-color: rgba(15, 26, 46, 0.05);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* Mobile Menu Button */
#mobile-menu-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: rgba(15, 26, 46, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    z-index: 100;
    padding: 0;
    margin: 4px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    flex-shrink: 0;
}

/* Center the icon within the button */
#mobile-menu-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

#mobile-menu-btn svg {
    display: block;
    margin: 0 auto;
}

#mobile-menu-btn:hover,
#mobile-menu-btn:focus {
    background-color: rgba(15, 26, 46, 0.1);
    transform: scale(1.05);
}

#mobile-menu-btn:active {
    background-color: rgba(15, 26, 46, 0.2);
    transform: scale(0.95);
}

/* Make the entire button area clickable */
#mobile-menu-btn * {
    pointer-events: none;
}

/* Form Components - Mobile Optimized */
.banzik-form input,
.banzik-form select,
.banzik-form textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.banzik-form input:focus,
.banzik-form select:focus,
.banzik-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.banzik-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--charcoal);
}

@media (max-width: 640px) {
    .banzik-form {
        gap: 1.5rem;
    }

    .banzik-form input,
    .banzik-form select,
    .banzik-form textarea {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 8px;
    }

    .banzik-form .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Section Header Components */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(201, 169, 97, 0.1);
    color: var(--accent);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Star Rating Components */
.star-rating {
    display: flex;
    gap: 2px;
}

.star-filled {
    fill: var(--accent);
    color: var(--accent);
}

/* Learn More Link Components */
.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.learn-more-link:hover {
    color: var(--accent-dark);
}

.learn-more-link:hover .arrow-icon {
    transform: translateX(4px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

/* Social Media Components */
.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

/* Footer Link Components */
.footer-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 4px;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.footer-link:hover .chevron-icon {
    transform: translateX(4px);
}

/* Logo Components */
.logo-dark-bg {
    filter: brightness(0) invert(1);
}

.logo-dark-bg:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Form Components */
.banzik-form input,
.banzik-form select,
.banzik-form textarea {
    font-size: 16px;
    transition: all 0.3s ease;
}

.banzik-form input:focus,
.banzik-form select:focus,
.banzik-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    transform: translateY(-1px);
}

/* ==========================================
   Split Form Layout Component
   ========================================== */

.split-form-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9, #e2e8f0);
}

.split-form-left {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
}

.split-form-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--primary), var(--secondary), var(--accent));
}

.split-form-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border: 1px solid #f3f4f6;
}

.split-form-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.split-form-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.1) 0%, rgba(17, 24, 39, 0.3) 100%);
    pointer-events: none;
}

.split-form-visual-content {
    position: relative;
    z-index: 10;
    color: white;
}

.split-form-visual h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

@media (min-width: 1024px) {
    .split-form-visual h2 {
        font-size: 3rem;
    }
}

.split-form-visual p {
    font-size: 1.25rem;
    color: #e5e7eb;
    line-height: 1.625;
    max-width: 28rem;
}

.split-form-visual-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(1px);
}

.split-form-branding {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.split-form-branding img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Floating Elements for Visual Appeal */
.split-visual-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    /* Animation removed for static display */
    backdrop-filter: blur(10px);
}

.split-visual-element:nth-child(1) {
    top: 10%;
    left: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.split-visual-element:nth-child(2) {
    top: 60%;
    right: 20%;
    width: 120px;
    height: 120px;
    animation-delay: 2s;
}

.split-visual-element:nth-child(3) {
    bottom: 20%;
    left: 25%;
    width: 60px;
    height: 60px;
    animation-delay: 4s;
}

/* Form Styling within Split Layout */
.split-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.split-form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.split-form-header p {
    color: #4b5563;
    font-size: 0.875rem;
}

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

.split-form-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.split-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.split-form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.split-form-button {
    width: 100%;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
}

.split-form-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.split-form-link {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.split-form-link:hover {
    color: var(--accent-dark);
}

.split-form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-form-container {
        flex-direction: column;
    }

    .split-form-left {
        max-width: none;
        min-height: auto;
        padding: 1.5rem;
    }

    .split-form-right {
        min-height: 300px;
    }

    .split-form-visual {
        padding: 2rem 1.5rem;
    }

    .split-form-visual h2 {
        font-size: 1.875rem;
    }

    .split-form-visual p {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .split-form-left {
        padding: 1rem;
    }

    .split-form-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .split-form-visual {
        padding: 1.5rem 1rem;
    }

    .split-form-branding {
        top: 1rem;
        left: 1rem;
    }
}

/* Animation for floating elements - Removed for static display */

/* Error Message Styling for Split Forms */
.split-form-error {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
}

.split-form-error-content {
    display: flex;
    align-items: center;
    color: #b91c1c;
    font-size: 0.875rem;
}

.split-form-error-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #dc2626;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Success Message Styling */
.split-form-success {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
}

.split-form-success-content {
    display: flex;
    align-items: center;
    color: #15803d;
    font-size: 0.875rem;
}

.split-form-success-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #16a34a;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Tab System for Transfers Page */
.tab-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.tab-btn:hover {
    color: var(--primary) !important;
}

.tab-active {
    border-bottom-color: var(--primary) !important;
    color: var(--primary) !important;
}

.tab-content {
    position: relative;
    z-index: 1;
    clear: both;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content[style*="display: block"] {
    z-index: 10;
}

.beneficiary-card {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    clear: both;
}

.beneficiary-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.beneficiary-card.selected,
.beneficiary-card.border-primary {
    border-color: var(--primary) !important;
    background-color: rgba(15, 26, 46, 0.05) !important;
    z-index: 4;
}

.delete-beneficiary {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

.delete-beneficiary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal positioning improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999 !important;
    backdrop-filter: blur(2px);
}

/* Form layout improvements */
.service-card form {
    position: relative;
    z-index: 1;
}

.service-card form .space-y-6 > * {
    position: relative;
    z-index: 1;
}

/* Prevent form nesting issues */
form form {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Metal Card Styles */
.premium-metal-card {
    max-width: 360px;
    width: 100%;
    height: 228px;
    aspect-ratio: 85.6/54; /* Standard credit card ratio */
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease-out;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

.card-shine {
    animation: cardShine 3s ease-in-out infinite;
}

@keyframes cardShine {
    0% { transform: translateX(-150%) translateY(-150%) rotate(45deg) scale(1.5); }
    10% { transform: translateX(-50%) translateY(-50%) rotate(45deg) scale(1.5); }
    90% { transform: translateX(-50%) translateY(-50%) rotate(45deg) scale(1.5); }
    100% { transform: translateX(150%) translateY(150%) rotate(45deg) scale(1.5); }
}

.premium-metal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.premium-metal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 25%,
        transparent 75%,
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .premium-metal-card {
        max-width: 100%;
        height: auto;
        min-height: 180px;
    }

    .card-3d:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .premium-metal-card {
        max-width: 100%;
        height: auto;
        min-height: 160px;
        border-radius: 12px;
    }

    .card-3d:hover {
        transform: none;
    }
}

/* ========================================== */