/* 
 * بطاقة تكافل للخصم الطبي المباشر - Landing Page Styles
 * Custom CSS for the landing page
 */

:root {
    /* Brand Colors - Purple/Indigo Theme */
    --c1: #6366f1;
    /* Indigo - Primary */
    --c2: #8b5cf6;
    /* Purple - Accent */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6366f1;
    --dark: #1e1b4b;
    --light: #f5f3ff;
    --purple: #a855f7;
    --gradient-brand: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    --gradient-brand-135: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #4338ca 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    --body-bg: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: var(--gradient-brand) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 188, 212, 0.3);
}

.navbar.scrolled {
    background: var(--gradient-brand) !important;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
}

.navbar-brand img {
    filter: brightness(1.1);
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--warning) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 77, 64, 0.6) 0%, rgba(0, 105, 92, 0.3) 100%);
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

/* Stats Row */
.stats-row {
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--warning);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* Medical Card Preview */
.card-preview {
    perspective: 1000px;
}

.medical-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.medical-card:hover {
    transform: rotateY(0) rotateX(0);
}

.card-logo {
    max-width: 200px;
    margin-bottom: 30px;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.card-holder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #fff;
}

.feature-icon.bg-purple {
    background: var(--purple);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* Step Cards */
.step-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 45px;
    height: 45px;
    background: var(--warning);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 25px;
    font-size: 2.5rem;
    color: #fff;
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card p {
    color: #6c757d;
    margin: 0;
}

/* Network Section */
.bg-gradient-primary {
    background: var(--gradient-brand) !important;
}

.network-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.network-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.network-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--warning);
    line-height: 1;
}

.network-label {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 1.1rem;
}

/* About Section */
.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-feature i {
    font-size: 1.5rem;
}

.about-feature span {
    font-weight: 600;
    color: var(--dark);
}

/* Comparison Card */
.comparison-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list.success li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    margin-left: 10px;
}

.comparison-list.danger li::before {
    content: '✗';
    color: var(--danger);
    font-weight: bold;
    margin-left: 10px;
}

/* Contact Section */
.bg-gradient-dark {
    background: var(--gradient-hero) !important;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(0, 230, 118, 0.2);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.15);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: var(--warning);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
}

.form-floating label {
    padding: 15px 20px;
    color: #6c757d;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: var(--primary);
}

/* Buttons */
.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--dark);
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    border-radius: 12px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--gradient-brand) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer h5 {
    color: #fff;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .network-number {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .feature-card,
    .step-card {
        padding: 30px 20px;
    }

    .comparison-card {
        padding: 25px 15px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Package Cards */
.package-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 25px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
    overflow: hidden;
}

/* Discount Ribbon */
.package-discount-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 10px;
    text-align: center;
    animation: pulse-ribbon 2s ease-in-out infinite;
    z-index: 10;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-ribbon {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Old Price Strikethrough */
.package-price .price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 500;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
    border-color: var(--warning);
    transform: scale(1.02);
}

.package-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.package-badge.gold {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.package-badge.family {
    background: var(--info);
}

.package-badge.seniors {
    background: var(--success);
}

.package-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 20px;
    font-size: 2rem;
    color: #fff;
}

.package-icon.gold {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.package-icon.family {
    background: linear-gradient(135deg, var(--info), #0099cc);
}

.package-icon.seniors {
    background: linear-gradient(135deg, var(--success), #157347);
}

.package-name {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.package-price {
    margin-bottom: 5px;
}

.package-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.package-price.gold .price {
    color: #ff9800;
}

.package-price.family .price {
    color: var(--info);
}

.package-price.seniors .price {
    color: var(--success);
}

.package-price .currency {
    font-size: 1rem;
    color: #6c757d;
}

.package-duration {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.package-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: right;
}

.package-features-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features-list li i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Service Badges */
.service-badge {
    background: #fff;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.service-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-badge i {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .btn {
        margin-top: 15px;
        display: block;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .network-number {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    .package-card {
        margin-bottom: 20px;
    }

    .package-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .display-5 {
        font-size: 1.6rem;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .package-price .price {
        font-size: 2rem;
    }

    .package-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .feature-card,
    .step-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .comparison-card {
        padding: 20px 12px;
    }

    .comparison-list li {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .network-stat {
        padding: 20px 10px;
    }

    .network-number {
        font-size: 1.5rem;
    }

    .network-label {
        font-size: 0.85rem;
    }

    .contact-form-card {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .form-control,
    .form-select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .form-floating label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    footer .col-lg-4 {
        text-align: center;
    }

    footer img {
        margin: 0 auto;
        display: block;
    }

    .about-feature {
        padding: 12px;
        font-size: 0.9rem;
    }

    .about-feature i {
        font-size: 1.2rem;
    }

    .service-badge {
        padding: 10px 8px;
        font-size: 0.75rem;
    }

    .service-badge i {
        font-size: 1.2rem;
    }
}

/* iOS Safari Fixes */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }

    .btn {
        appearance: none;
        -webkit-appearance: none;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .package-card:hover,
    .feature-card:hover,
    .step-card:hover,
    .network-stat:hover,
    .service-badge:hover {
        transform: none;
    }

    .package-card.featured {
        transform: none;
    }

    .btn-warning:hover {
        transform: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .navbar-brand img,
    .card-logo,
    footer img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .min-vh-100 {
        min-height: auto !important;
    }
}