/* ===== CONTACT PAGE STYLES ===== */

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f172a 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--white);
}

.breadcrumb {
    margin-top: 2rem;
}

.breadcrumb-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}

.breadcrumb-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
   
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    min-height: 80vh;
    position: relative;
}

.contact-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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30,41,59,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

/* Contact Form Styles */
.contact-form-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(47, 90, 142, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2f5a8e, #f4c63a);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2f5a8e;
    margin-bottom: 0.25rem;
}

.contact-form-subtitle {
    color: #666666;
    font-size: 1rem;
    line-height: 1.4;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2f5a8e;
    margin-bottom: 0.375rem;
    font-size: 0.95rem;
    position: relative;
}

.form-label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: 900;
}

.form-label.optional::after {
    content: '';
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: none;
    border-bottom: 3px solid var(--border-light);
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Tajawal', Arial, sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #333333;
    position: relative;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Untouched fields - no error styling */
.form-input:not(.touched),
.form-textarea:not(.touched) {
    border-bottom-color: var(--border-light);
    background: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.form-input::placeholder,
.form-textarea::placeholder {
    color: #999999;
    font-style: italic;
    transition: all 0.3s ease;
}

.form-input:focus::placeholder,
.form-textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

.form-input:focus,
.form-textarea:focus {
    border-bottom-color: #2f5a8e;
    background: rgba(47, 90, 142, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(47, 90, 142, 0.15), 0 4px 20px rgba(47, 90, 142, 0.1);
}

.form-input:hover,
.form-textarea:hover {
    border-bottom-color: #2f5a8e;
    background: rgba(47, 90, 142, 0.01);
    box-shadow: 0 4px 12px rgba(47, 90, 142, 0.08);
    transform: translateY(-1px);
}

.form-input.touched:invalid:not(:placeholder-shown),
.form-textarea.touched:invalid:not(:placeholder-shown) {
    border-bottom-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15), 0 4px 20px rgba(231, 76, 60, 0.1);
}

/* Disabled automatic valid styling - using JavaScript validation instead */
/* .form-input.touched:valid:not(:placeholder-shown),
.form-textarea.touched:valid:not(:placeholder-shown) {
    border-bottom-color: #27ae60;
    background: rgba(39, 174, 96, 0.02);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15), 0 4px 20px rgba(39, 174, 96, 0.1);
} */

/* Custom validation styling controlled by JavaScript */
.form-input.is-valid,
.form-textarea.is-valid {
    border-bottom-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.02) !important;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15), 0 4px 20px rgba(39, 174, 96, 0.1) !important;
}

.form-input.is-invalid,
.form-textarea.is-invalid {
    border-bottom-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.02) !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15), 0 4px 20px rgba(231, 76, 60, 0.1) !important;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
    font-family: 'Tajawal', Arial, sans-serif;
}


/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background: var(--white);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.privacy-link,
.terms-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-link:hover,
.terms-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Subject Dropdown Styles */
.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: none;
    border-bottom: 3px solid var(--border-light);
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Tajawal', Arial, sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #333333;
    position: relative;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
}

.dropdown-toggle:hover {
    border-bottom-color: var(--primary-blue);
    background: rgba(30, 41, 59, 0.04);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    transform: translateY(-1px);
}

.dropdown-toggle:focus {
    border-bottom-color: var(--primary-blue);
    background: rgba(30, 41, 59, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.12), 0 4px 20px rgba(30, 41, 59, 0.1);
}

.dropdown-toggle.active {
    border-bottom-color: var(--primary-blue);
    background: rgba(30, 41, 59, 0.04);
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.12), 0 4px 20px rgba(30, 41, 59, 0.1);
}

.dropdown-text {
    color: #999999;
    font-style: italic;
    transition: all 0.3s ease;
}

.dropdown-toggle.active .dropdown-text {
    color: #333333;
    font-style: normal;
}

.dropdown-icon {
    color: #2f5a8e;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(47, 90, 142, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(47, 90, 142, 0.05);
    color: #2f5a8e;
    transform: translateX(5px);
}

.dropdown-item.selected {
    background: rgba(47, 90, 142, 0.1);
    color: #2f5a8e;
    font-weight: 600;
}

.dropdown-item.selected::after {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2f5a8e;
    font-weight: bold;
}

/* Form Error Styles */
.form-error {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.375rem;
    min-height: 0.875rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border-right: 3px solid #e74c3c;
    position: relative;
    transform: translateY(-10px);
}

.form-error::before {
    content: '⚠️';
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.form-error.show {
    opacity: 1;
    transform: translateY(0);
}
/* Complaint attachment (optional image) */
.complaint-attachment-group .form-hint {
    font-size: 0.875rem;
    color: var(--text-gray, #6b7280);
    margin-top: 0.375rem;
}

.complaint-attachment-group .form-input-file {
    padding: 0.5rem;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #2f5a8e, #f4c63a);
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(47, 90, 142, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Info Container */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(47, 90, 142, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
}

.contact-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-title i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    background: var(--light-gray);
    box-shadow: 0 2px 8px rgba(47, 90, 142, 0.1);
    transform: translateX(-5px);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2f5a8e, #f4c63a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail-content {
    flex: 1;
}

.contact-detail-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f5a8e;
    margin-bottom: 0.2rem;
}

.contact-detail-value {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Quick Contact Buttons */
.quick-contact-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0.875rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.quick-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2f5a8e, #f4c63a);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.quick-contact-btn:hover::before {
    opacity: 1;
}

.quick-contact-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(47, 90, 142, 0.15);
    border-color: #f4c63a;
}

.quick-contact-btn i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.quick-contact-btn span {
    font-weight: 600;
    font-size: 0.85rem;
}

.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
}

.whatsapp-btn:hover {
    background: #128c7e;
}

.call-btn {
    background: #2f5a8e;
    color: #ffffff;
}

.call-btn:hover {
    background: #1e293b;
}

.email-btn {
    background: #f4c63a;
    color: #2f5a8e;
}

.email-btn:hover {
    background: #f0b90b;
}

/* Map Container */
.map-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(47, 90, 142, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f4c63a, #2f5a8e);
}

.map-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-title i {
    color: #f4c63a;
    font-size: 1.3rem;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(47, 90, 142, 0.1);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.map-wrapper:hover {
    box-shadow: 0 4px 20px rgba(47, 90, 142, 0.15);
    border-color: #f4c63a;
}

.map-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* Form Success/Error States */
.form-success {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid #27ae60;
    color: #155724;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.form-success::before {
    content: '✅';
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.form-success.show {
    display: block;
    animation: slideInDown 0.5s ease-out;
}

.form-error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    color: #721c24;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.form-error-message::before {
    content: '⚠️';
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.form-error-message.show {
    display: block;
    animation: slideInDown 0.5s ease-out;
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-info-card,
    .map-container {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .contact-content {
        gap: 1.75rem;
        padding: 1rem 0;
    }
    
    .contact-form-container {
        padding: 1.75rem;
    }
    
    .contact-form-title {
        font-size: 1.6rem;
    }
    
    .contact-info-card,
    .map-container {
        padding: 1.25rem;
    }
    
    /* تم تحسين تصميم عناصر معلومات التواصل للشاشات المتوسطة */
    .contact-detail-item {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        gap: 1.25rem;
        background: var(--white);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(47, 90, 142, 0.1);
    }
    
    .contact-detail-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }
    
    .contact-detail-label {
        font-size: 1.05rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-detail-value {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* تم تحسين تصميم أزرار التواصل السريع للشاشات المتوسطة */
    .quick-contact-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .quick-contact-btn {
        flex-direction: row;
        justify-content: center;
        padding: 0.875rem;
        font-size: 0.95rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .quick-contact-btn i {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }
    
    .quick-contact-btn span {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .map-wrapper iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 1.25rem;
    }
    
    .contact-form-title {
        font-size: 1.4rem;
    }
    
    .contact-info-card,
    .map-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    /* تم تحسين تصميم عناصر معلومات التواصل للهواتف المحمولة */
    .contact-detail-item {
        flex-direction: row;
        text-align: right;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
        background: var(--white);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(47, 90, 142, 0.1);
    }
    
    .contact-detail-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .contact-detail-content {
        flex: 1;
        text-align: right;
    }
    
    .contact-detail-label {
        font-size: 1rem;
        font-weight: 600;
        color: #2f5a8e;
        margin-bottom: 0.3rem;
    }
    
    .contact-detail-value {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #333333;
    }
    
    /* تم تحسين تصميم أزرار التواصل السريع للهواتف المحمولة */
    .quick-contact-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .quick-contact-btn {
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .quick-contact-btn i {
        font-size: 1.3rem;
        margin-left: 0.75rem;
    }
    
    .quick-contact-btn span {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .form-input,
    .form-textarea,
    .dropdown-toggle {
        padding: 0.7rem 1rem;
    }
    
    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .map-wrapper iframe {
        height: 220px;
    }
}

/* تم إضافة تحسينات للشاشات الصغيرة جداً (أقل من 360px) */
@media (max-width: 360px) {
    .contact-info-card,
    .map-container {
        padding: 0.75rem;
        margin: 0 0.25rem;
    }
    
    .contact-detail-item {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-detail-label {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-detail-value {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .quick-contact-buttons {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
    
    .quick-contact-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .quick-contact-btn i {
        font-size: 1.1rem;
        margin-left: 0.5rem;
    }
    
    .quick-contact-btn span {
        font-size: 0.85rem;
    }
    
    .map-wrapper iframe {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .contact-form-container,
    .contact-info-card,
    .map-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .quick-contact-buttons {
        display: none;
    }
    
    .map-wrapper iframe {
        height: 200px;
    }
}

/* Custom validation styling controlled by JavaScript */
.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.form-input.is-valid,
.form-textarea.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}
.alert {
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}