/* Health Insurance Website Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.active .step-text {
    color: var(--primary-color);
}

.step.completed .step-number {
    background-color: var(--secondary-color);
    color: white;
}

.step.completed .step-text {
    color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Form Styles */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Tables */
.table td {
    padding: 0.75rem 0;
    border: none;
    vertical-align: top;
}

.table td:first-child {
    width: 140px;
}

/* Price Display */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert ul {
    list-style: none;
    padding-left: 0;
}

.alert li::before {
    content: '• ';
    color: #721c24;
    font-weight: bold;
}

/* Loading Animation */
.spinner-border-primary {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-steps {
        padding: 0 10px;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .step {
        padding: 0 8px;
    }
    
    .step-text {
        display: none;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: #343a40;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.125rem 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #495057;
    color: white;
}

.admin-header {
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.admin-content {
    background-color: var(--light-gray);
    min-height: 100vh;
}

/* Data Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Custom Checkbox and Radio */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Language Switcher */
.language-bar {
    border-bottom: 1px solid var(--border-color);
}

.language-switcher .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
}

/* Homepage Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-section .lead,
.hero-section p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-form {
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
    border-radius: 1rem !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.hero-form .card-header {
    border-bottom: none;
    padding: 1.5rem 1rem 1rem;
}

.hero-form .form-control,
.hero-form .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.hero-form .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-form .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.trust-indicator {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trust-indicator i {
    opacity: 0.9;
}

.price-banner {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(10px);
    margin: 0 1rem;
}

.price-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-from {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.price-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-tag {
    background: rgba(40, 167, 69, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.feature-tag i {
    color: #FFD700;
}

@media (max-width: 768px) {
    .price-amount {
        font-size: 2rem;
    }
    
    .price-banner {
        margin: 0;
    }
    
    .price-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

.feature-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-sm {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.process-step {
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

.company-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.company-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.company-logo img {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.2s ease-in-out;
}

.company-card:hover .company-logo img {
    filter: grayscale(0%);
}

.feature-item {
    padding: 1rem 0;
}

.contact-info {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .language-switcher {
    text-align: left;
}

[dir="rtl"] .btn .fas,
[dir="rtl"] .btn .far {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .step-text {
    text-align: center;
}

/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    padding: 1.5rem;
}

.cookie-consent-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-icon {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-text h6 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.cookie-consent .btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #20c997);
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.cookie-consent .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.cookie-consent .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    background: transparent;
}

.cookie-consent .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.cookie-consent .btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.cookie-consent .btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Cookie Settings Modal */
.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.form-check-label small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-switch .form-check-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Responsive Cookie Consent */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        border-radius: 0.5rem;
    }
    
    .cookie-consent-content {
        padding: 1rem;
    }
    
    .cookie-consent-body {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .cookie-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .cookie-consent-actions .btn {
        flex: 1;
        min-width: auto;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .progress-steps,
    .language-bar,
    .cookie-consent {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}