/* IP Shield Africa Ghana - Enhanced Styles */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #FFF;
    transform: scale(1.1);
    text-decoration: none;
}

.whatsapp-float:focus {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.5);
}

/* Enhanced feature boxes */
.feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
}

/* Enhanced card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Professional color scheme for Ghana */
.bg-ghana-gold {
    background-color: #FFD700 !important;
}

.bg-ghana-red {
    background-color: #DC143C !important;
}

.bg-ghana-green {
    background-color: #006B3C !important;
}

.text-ghana-gold {
    color: #FFD700 !important;
}

.text-ghana-red {
    color: #DC143C !important;
}

.text-ghana-green {
    color: #006B3C !important;
}

/* Enhanced form styles */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Timeline styles for process sections */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bs-primary);
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .feature {
        height: 3rem;
        width: 3rem;
        font-size: 1rem;
    }
    
    /* Stack buttons vertically on mobile */
    .d-inline-flex {
        flex-direction: column !important;
        width: 100%;
    }
    
    .d-inline-flex .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
        white-space: normal !important;
        text-align: center !important;
    }
    
    /* Adjust button text size on mobile */
    .btn-sm {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Print styles for professional documents */
@media print {
    .whatsapp-float,
    .btn,
    .navbar,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus improvements for keyboard navigation */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    /* outline: 2px solid var(--bs-primary); */
    outline-offset: 2px;
}

/* Custom button padding adjustments - reduce padding for cleaner look */
.btn-sm {
    padding: 0.375rem 0.85rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Fix anchor tag buttons to look identical to regular buttons */
a.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    line-height: 1.5 !important;
}

a.btn:hover {
    text-decoration: none !important;
}

a.btn.btn-lg {
    padding: 0.5rem 1rem !important;
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
}

/* Button group alignment fixes */
.d-inline-flex .btn {
    flex-shrink: 0;
}

/* Ensure icons and text align properly in buttons */
.btn i,
.btn .bi {
    vertical-align: middle;
    line-height: 1 !important;
    margin-right: 0.25rem;
    display: inline-block;
}

/* Remove extra margin if icon is last child */
.btn i:last-child,
.btn .bi:last-child {
    margin-right: 0;
    margin-left: 0.25rem;
}

/* Fix card icon and text alignment - make them horizontal */
.card-body.text-center > i {
    display: block;
    margin-bottom: 1rem;
}

.card-body.text-center > h5,
.card-body.text-center > h6 {
    margin-top: 0;
}

/* For service cards with icons, make icon and title horizontal */
.card-header h3 i,
.card-header h5 i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Loading spinner for form submissions */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}