/* page/contact.php styles */
:root {
    --primary: #00aeef;
    --primary-dark: #009bd5;
    --secondary: #64748b;
    --success: #10b981;
    --info: #0ea5e9;
    --warning: #f7941e;
    --danger: #ef4444;
    --dark: #414042;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #00aeef 0%, #009bd5 100%);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --header-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --border-radius: 16px;
}

* {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f1f5f9;
    color: #414042;
}

.navbar {
    box-shadow: var(--card-shadow);
    background-color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    margin: 0 8px;
    color: #475569 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 174, 239, 0.4);
}

.section-header {
    text-align: center;
    padding: 60px 0;
    background: #00aeef;
    color: white;
    margin-bottom: 40px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 24px;
    transition: all 0.3s;
    border: 1px solid #f7941e;
    /* Orange Border */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-info h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.working-hours {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.working-hours .contact-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.working-hours .contact-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    border: 1px solid #f7941e;
    /* Orange Border */
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 12px;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.alert {
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0 15px;
    margin-top: 40px;
}

.footer h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer a i {
    margin-left: 10px;
    font-size: 0.8rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 991px) {
    .section-header h1 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .section-header {
        padding: 40px 20px;
    }

    .section-header h1 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .contact-card,
    .contact-form {
        padding: 20px;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.5rem 1.2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card,
.contact-form {
    animation: fadeIn 0.6s ease-out forwards;
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-form {
    animation-delay: 0.3s;
}

/* تحسين حقل النص الطويل */
.form-control:focus {
    border-color: var(--primary) !important;
}

/* إضافة نجمة للحقول المطلوبة */
.required::after {
    content: " *";
    color: var(--danger);
}

/* Force Primary Color Override */
.bg-primary {
    background-color: #00aeef !important;
}

.text-primary {
    color: #00aeef !important;
}

.badge.bg-primary {
    background-color: #00aeef !important;
}

.btn-primary {
    background-color: #00aeef !important;
    border-color: #00aeef !important;
}

.btn-outline-primary {
    color: #00aeef !important;
    border-color: #00aeef !important;
}

.btn-outline-primary:hover {
    background-color: #00aeef !important;
    color: white !important;
}