
/* ===================================
   Rayan School - Contact Page
   =================================== */

.contact {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    padding: 70px 6%;

    max-width: 1250px;

    margin: 0 auto;

    align-items: stretch;
}


/* ===================================
   Contact Cards
   =================================== */

.contact-info,
.contact-form {
    background: #ffffff;

    padding: 32px;

    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    border: 1px solid #eef2f7;

    height: 100%;

    transition: all 0.3s ease;
}

.contact-info:hover,
.contact-form:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.11);
}


/* ===================================
   Card Header
   =================================== */

.contact-card-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eef2f7;
}

.contact-card-icon {
    width: 52px;

    height: 52px;

    flex-shrink: 0;

    border-radius: 15px;

    background: #dbeafe;

    color: #2563eb;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;
}

.contact-card-header h2 {
    color: #172554;

    font-size: 22px;

    margin: 0 0 5px;
}

.contact-card-header p {
    color: #64748b;

    font-size: 13px;

    line-height: 1.7;

    margin: 0;
}


/* ===================================
   Contact Information
   =================================== */

.contact-info-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px;

    margin-bottom: 12px;

    background: #f8fafc;

    border-radius: 14px;

    transition: all 0.25s ease;
}

.contact-info-item:hover {
    background: #eff6ff;

    transform: translateX(-3px);
}


.contact-info-icon {
    width: 43px;

    height: 43px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #dbeafe;

    color: #2563eb;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;
}


.whatsapp-icon {
    background: #dcfce7;

    color: #16a34a;
}


.facebook-icon {
    background: #dbeafe;

    color: #1877f2;
}


.contact-info-item span {
    display: block;

    color: #94a3b8;

    font-size: 11px;

    margin-bottom: 4px;
}


.contact-info-item strong {
    display: block;

    color: #334155;

    font-size: 14px;

    line-height: 1.6;

    word-break: break-word;
}


.contact-info-item a {
    color: #2563eb;

    text-decoration: none;

    transition: 0.2s;
}


.contact-info-item a:hover {
    color: #1d4ed8;

    text-decoration: underline;
}


/* ===================================
   Contact Form
   =================================== */

.contact-form form {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.input-box {
    display: flex;

    flex-direction: column;
}


.input-box label {
    margin-bottom: 8px;

    color: #334155;

    font-size: 14px;

    font-weight: 600;
}


.input-box input,
.input-box textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dbe3ef;

    border-radius: 11px;

    background: #f8fafc;

    color: #1e293b;

    font-family: "Cairo", sans-serif;

    font-size: 14px;

    outline: none;

    transition: all 0.25s ease;

    box-sizing: border-box;
}


.input-box input {
    height: 48px;
}


.input-box textarea {
    min-height: 150px;

    resize: vertical;

    line-height: 1.8;
}


.input-box input::placeholder,
.input-box textarea::placeholder {
    color: #94a3b8;
}


.input-box input:focus,
.input-box textarea:focus {
    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* ===================================
   Full Width
   =================================== */

.full-width {
    grid-column: 1 / -1;
}


/* ===================================
   Submit Button
   =================================== */

.submit-btn {
    text-align: center;

    margin-top: 3px;
}


.submit-btn .btn {
    width: 100%;

    min-height: 50px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    font-family: "Cairo", sans-serif;

    font-size: 15px;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    transition: all 0.25s ease;
}


.submit-btn .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.20);
}


/* ===================================
   Map
   =================================== */

.map {
    padding: 70px 6%;

    max-width: 1250px;

    margin: 0 auto;
}


.map h2 {
    text-align: center;

    color: #172554;

    font-size: 24px;

    margin-bottom: 25px;
}


.map-box {
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    border: 1px solid #eef2f7;
}


.map-box iframe {
    display: block;

    width: 100%;

    min-height: 400px;
}


/* ===================================
   Tablet
   =================================== */

@media (max-width: 992px) {

    .contact {
        grid-template-columns: 1fr;

        padding: 50px 25px;

        gap: 25px;
    }

    .map {
        padding: 50px 25px;
    }

}


/* ===================================
   Mobile
   =================================== */

@media (max-width: 600px) {

    .contact {
        padding: 35px 15px;

        gap: 20px;
    }


    .contact-info,
    .contact-form {
        padding: 22px 18px;

        border-radius: 18px;
    }


    .contact-card-header {
        align-items: flex-start;

        gap: 12px;

        margin-bottom: 22px;
    }


    .contact-card-icon {
        width: 45px;

        height: 45px;

        border-radius: 13px;

        font-size: 18px;
    }


    .contact-card-header h2 {
        font-size: 19px;
    }


    .contact-card-header p {
        font-size: 12px;
    }


    .contact-info-item {
        padding: 12px;

        gap: 11px;
    }


    .contact-info-icon {
        width: 39px;

        height: 39px;

        border-radius: 10px;

        font-size: 15px;
    }


    .contact-info-item strong {
        font-size: 13px;
    }


    .contact-form form {
        grid-template-columns: 1fr;
    }


    .full-width {
        grid-column: auto;
    }


    .input-box input {
        height: 46px;
    }


    .map {
        padding: 35px 15px;
    }


    .map h2 {
        font-size: 21px;
    }


    .map-box iframe {
        min-height: 300px;

        height: 300px;
    }

}

