
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





.contact-us {
    margin-top: 60px ;
    padding: 40px 20px;
    
}

.contact-us-content {
    padding: 20px 0px;
    text-align: center;
}

.contact-us h1 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-us-content p {
    font-size: 18px;
    line-height: 1.6;
}


form
{
    padding: 20px;
    
   
}

form label {
    color: var(--light-blue);
    font-weight: 600;
}

.contact-us-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px 0;
    border: 1px solid var(--gray);
    border-radius: 5px;
    
}


form .btn { 
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 11px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


form .btn:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
}


.contact-us-body {

    
    background-color: var(--light-gray);

    margin-top: 30px;
}

.contact-us .contact-us-body {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-us .contact-us-body .contact-us-form,
.contact-us .contact-us-body .form-image {
    padding-top: 6px;
    padding-bottom: 6px;
}

.form-image {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.form-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    object-fit: cover;
}

.contact-us .contact-us-body form {
    background: #fff;
    border-radius: 12px;
}

@media (max-width: 767.98px) {
    .contact-us .contact-us-body {
        padding: 20px 10px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    }
    
    form {
        padding: 15px 10px;
    }
    
    form .btn {
        width: 100%;
        padding: 13px 30px;
    }
    
    .contact-cards {
        margin: 15px 0 30px 0;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
     .contact-us-form {
        padding : 15px 0px;
    }
    .form-image {
        padding : 15px 0px;
    }

   
}


.contact-form-title {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form-description {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-us-form textarea {
    padding: 10px;
    margin: 10px 0 20px 0;
    border: 1px solid var(--gray);
    border-radius: 5px;
}



.contact-details {
    display: flex;
    text-align: center;
    justify-content: space-between;
    margin: auto;
}


.company-info h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}


.contact-details p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 5px 0;

}


/* Fix Arabic placeholder alignment in email input */
.contact-us-form input.arabic-email::placeholder, .contact-us-form input.arabic-phone::placeholder {
    text-align: right;
    direction: rtl;
}


#form-status-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

/* Green Success Box */
.success-message {
    background-color: #e8f9ee;
    border-left: 4px solid #2ecc71;
    color: #2b8a55;
}

/* Red Error Box */
.error-message {
    background-color: #fdeaea;
    border-left: 4px solid #e74c3c;
    color: #b8433f;
    animation: shake 0.3s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shake Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}




/* Contact Cards */
.contact-cards {
    margin: 20px 0 40px 0;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.contact-card .contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
    margin-bottom: 14px;
}

.contact-card h3 {
    margin: 6px 0 4px 0;
    font-size: 18px;
    color: var(--dark-blue);
    font-weight: 700;
}

.contact-card p {
    margin: 0 0 12px 0;
    color: var(--dark-gray);
    font-size: 15px;
}

.contact-card .contact-action {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-card .contact-action:hover {
    text-decoration: underline;
}

.contact-card .muted {
    color: var(--gray);
    font-weight: 500;
}

/* Quick Actions */

.quick-link {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 20px 0;
}

.quick-link i {
    font-size: 18px;
}

.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.quick-link.calendar {
    background: linear-gradient(135deg, var(--accent-color), #5a9fd4);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.35);
}

.quick-link.calendar:hover {
    background: linear-gradient(135deg, #5a9fd4, var(--accent-color));
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.45);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .contact-card {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .contact-us .contact-us-body {
        padding: 15px 5px;
    }
    
    form {
        padding: 10px 5px;
    }
    
    .quick-link {
        padding: 12px 14px;
        width: 100%;
    }
    
    .contact-card {
        padding: 18px 12px;
    }
    
    .contact-us h1 {
        font-size: 28px;
    }
    
    .contact-form-title {
        font-size: 20px;
    }
}

/* Contact Success Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideUp 0.3s ease-out;
    margin: auto;
    align-self: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-modal-title {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.contact-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-modal-close:hover {
    color: var(--primary-blue);
    background: rgba(26, 58, 95, 0.1);
    transform: rotate(90deg);
}

.contact-modal-body {
    padding: 30px;
}

.contact-modal-message {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0 0 15px 0;
}

.contact-modal-message:last-of-type {
    margin-bottom: 0;
}

.contact-modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px 30px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.contact-modal-link {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.2);
}

.contact-modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 95, 0.3);
    color: var(--white);
}

.contact-modal-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.contact-modal-link:hover i {
    transform: translateX(3px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .contact-modal-title {
        font-size: 24px;
    }
    
    .contact-modal-body {
        padding: 25px 20px;
    }
    
    .contact-modal-message {
        font-size: 15px;
    }
    
    .contact-modal-footer {
        padding: 15px 20px 25px 20px;
        flex-direction: column;
    }
    
    .contact-modal-link {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .contact-modal-title {
        font-size: 20px;
    }
    
    .contact-modal-header {
        padding: 20px 15px 12px 15px;
    }
    
    .contact-modal-body {
        padding: 20px 15px;
    }
    
    .contact-modal-footer {
        padding: 12px 15px 20px 15px;
    }
    
    .contact-modal-link {
        font-size: 15px;
        padding: 12px 20px;
    }
}
