/* Body styling */
.contact-us {
    font-family: var(--font-family-primary);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
}

/* Container styling */
.contact-first-section-container,
.contact-second-section-container,
.contact-third-section-container {
    max-width: 1170px;
    margin: 0 auto;
    text-align: center;
}

/******************************* RTL Specific Styles *******************************/

/* RTL Specific Styles */
.rtl {
    direction: rtl;
}

.rtl .contact-second-section-content,
.rtl .contact-second-section-form {
    text-align: right;
}

.rtl .contact-second-section-form .form-label,
.rtl .contact-second-section-form .form-control {
    text-align: right;
}

.rtl .contact-second-section-info .contact-methods {
    flex-direction: row-reverse;
}

.rtl .contact-second-section-info .contact-method {
    justify-content: right;
}

.rtl .contact-second-section-info .contact-method img {
    margin-left: 20px;
    margin-right: 0;
}

/* LTR Specific Styles */
.ltr {
    direction: ltr;
}

.ltr .contact-second-section-content,
.ltr .contact-second-section-form {
    text-align: left;
}

.ltr .contact-second-section-info .contact-method {
    justify-content: flex-start;
}

/* ===============================
    1. First Section CSS
================================== */

/* Header styling */
.contact-first-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: url("images/BlurEffects.png") no-repeat right center;
    background-size: 20%;
    background-position: 500px -20px;
    border-radius: 15px;
    padding: 100px 20px 125px 20px;
}

.contact-first-section-image {
    flex: 1;
    justify-content: flex-start;
}

.contact-first-section-image img {
    max-width: 100%;
    height: auto;
}

.contact-first-section-text {
    flex: 1;
    text-align: left;
    color: #fff;
}

.contact-first-section-text h1 {
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(
        280.65deg,
        #5b388c 42.09%,
        #5b388c 43.11%,
        #7956a1 68.6%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    white-space: nowrap;
    line-height: 100px;
}

.contact-first-section-text p {
    font-size: 22px;
    font-weight: 400;
    color: #575b66;
    text-align: center;
}

/* Responsive design for smaller screens */

@media (max-width: 1200px) {
    .contact-first-section {
        padding: 20px;
    }

    .contact-first-section-text h1 {
        white-space: nowrap;
    }

    .contact-first-section-header {
        padding: 100px 0 60px 0;
    }

    .contact-first-section-text h1 {
        font-size: 50px;
        white-space: nowrap;
        line-height: 100px;
    }
}

@media (max-width: 1024px) {
    .contact-first-section-header {
        flex-direction: column;
        text-align: center;
        background-size: 100%;
        background-position: center;
    }

    .contact-first-section-image,
    .contact-first-section-text {
        text-align: center;
        padding: 10px;
    }

    .contact-first-section-text h1 {
        font-size: 36px;
        line-height: 50px;
    }

    .contact-first-section-text p {
        font-size: 18px;
    }

    .contact-first-section-image img {
        max-width: 60%;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .contact-first-section-image {
        justify-content: center;
        margin: 0 auto;
    }

    .contact-first-section-image img {
        max-width: 80%;
    }

    .contact-first-section-text {
        padding: 0 15px;
    }

    .contact-first-section-text h1 {
        font-size: 35px;
    }

    .contact-first-section-text p {
        font-size: 15px;
    }

    .contact-first-section-header {
        background-size: 90%;
        background-position: right center;
    }
}

/* Common styles */
.contact-second-section-content {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.contact-second-section-form {
    width: 55%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.contact-second-section-form h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-second-section-form .mb-3 {
    margin-bottom: 15px;
}

.contact-second-section-form .form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    color: #3d3d3d;
    font-weight: 400;
}

.contact-second-section-form .form-control {
    width: 100%;
    padding: 9px 16px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.07);
    transition: border-color 0.3s ease;
    background-color: rgba(235, 235, 235, 0.5);
    margin: 0 auto;

}

.contact-second-section-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-second-section-form .form-control::placeholder {
    color: #979797;
}

.contact-second-section-form .message-input {
    height: 110px;
}

.contact-second-section-form .form-check-label {
    font-size: 15px;
    /* color: #979797; */
    margin-left: 5px;
}

.contact-second-section-form .btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.contact-second-section-form .btn {
    background-color: #7956a1;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    padding: 15px 25px;
    font-weight: 450;
    margin-top: 10px;
}

.contact-second-section-form .btn:hover {
    background-color: #5b388c;
}

.contact-second-section-info {
    width: 40%;
    margin: 160px 0;
    background: url("/images/KeepInT.png") no-repeat center center;
    background-position: -35px 20px;
    background-size: contain;
    padding: 20px 0 0 0;
    border-radius: 15px;
    box-shadow: inset 0 0 0 2000px rgba(255, 255, 255, 0.3);
}

.contact-second-section-info h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-second-section-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #3d3d3d;
    font-weight: 500;
}

.contact-second-section-info .contact-methods {
    align-items: center;
}

.contact-second-section-info .contact-method {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content in smaller screens */
}

.contact-second-section-info .contact-method img {
    margin-right: 20px;
    width: 75px;
    height: 75px;
}

.rtl .contact-second-section-info .contact-methods {
    flex-direction: row-reverse;
}

.rtl .contact-second-section-info .contact-method {
    justify-content: right;
}

.rtl .contact-second-section-info .contact-method img {
    margin-left: 20px;
    margin-right: 0;
}

.contact-second-section-info .contact-method div {
    font-size: 20px;
    color: #3d3d3d;
}

.contact-second-section-info .contact-method div a {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: -15px;
}

.contact-second-section-info .contact-method div a:hover {
    text-decoration: underline;
}

/* Responsive design for smaller screens */

@media (max-width: 1200px) {
    .contact-second-section-content {
        display: flex;
        justify-content: space-around;
        /* padding: 0 70px 0 70px; */
    }

    .contact-second-section-content h2 {
        font-size: 40px;
        white-space: wrap;
    }
}

@media (max-width: 992px) {
    .contact-second-section-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-first-section-header {
        background-size: 90%;
        background-position: right center;
        padding: 90px 20px 20px 20px;
        margin: 0;
    }

    .contact-second-section-info {
        margin: 20px auto;
        text-align: center;
    }

    .contact-second-section-form,
    .contact-second-section-info {
        width: 100%;
        margin: 20px 0;
        padding: 15px 40px;
    }

    .contact-second-section-form h2,
    .contact-second-section-info h2 {
        font-size: 30px;
    }

    .contact-second-section-form .form-label,
    .contact-second-section-info p {
        font-size: 16px;
    }

    .contact-second-section-form .form-check-label {
        font-size: 16px;
        font-weight: 200;
    }

    .contact-second-section-form .form-control::placeholder {
        color: #979797;
        font-size: 15px;
    }

    .contact-second-section-form .form-control {
        font-size: 14px;
    }

    .contact-second-section-info .contact-method img {
        width: 50px;
        height: 50px;
    }

    .contact-second-section-info .contact-method div {
        font-size: 16px;
    }

    .contact-second-section-info {
        background-position: center center;
    }

    .rtl .contact-second-section-info .contact-method {
        justify-content: center;
    }

    .ltr .contact-second-section-info .contact-method {
        justify-content: center;
    }
}

@media (max-width: 769px) {
    .contact-second-section-form .btn {
        background-color: #7956a1;
        color: #fff;
        border: none;
        border-radius: 15px;
        cursor: pointer;
        font-size: 15px;
        padding: 12px 18px;
        font-weight: 450;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .contact-first-section {
        padding: 0;
    }

    .contact-second-section-header {
        padding: 50px 20px 20px 20px;
    }

    .contact-second-section-form,
    .contact-second-section-info {
        padding: 10px 17px;
    }

    .contact-second-section-form h2,
    .contact-second-section-info h2 {
        font-size: 25px;
        align-items: center;
        text-align: center;
    }

    .contact-second-section-form .form-label {
        font-size: 12px;
    }

    .contact-second-section-info p {
        font-size: 12px;
        align-items: center;
        text-align: center;
    }

    .contact-second-section-form .form-check-label {
        font-size: 11px;
        margin-right: 5px;
    }

    .contact-second-section-form .form-check {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
    }

    .contact-second-section-form .btn-wrapper .btn {
        font-size: 15px;
        padding: 10px 30px;
        border-radius: 10px;
    }

    .contact-second-section-info .contact-method {
        flex-direction: column;
        justify-content: center;
    }

    .contact-second-section-info .contact-method img {
        margin-bottom: 10px;
        margin-right: 0;
        width: 40px;
        height: 40px;
    }

    .rtl .contact-second-section-info .contact-method img {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-second-section-info .contact-method div {
        font-size: 14px;
    }

    .contact-second-section-info {
        background-position: center center;
        text-align: center;
        width: 90%;
        margin: 0 auto;
    }

    .contact-second-section-form {
        width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 450px) {
    .contact-first-section-header {
        padding: 60px 20px 20px 20px;
    }

    .contact-second-section-content {
        display: flex;
        justify-content: space-around;
        /* padding: 0 10px 0 10px; */
    }

    .contact-first-section-text h1 {
        font-size: 25px;
    }

    .contact-first-section-image img {
        max-width: 70%;
    }
}

/* ===============================
    3. Third Section CSS
================================== */

.contact-third-section {
    padding: 20px 20px 20px 20px;
}

.contact-third-section-about {
    background: url("/images/contactUs card.png") no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 30px 15px;
    text-align: center;
    position: relative;
    flex: 1;
    margin-bottom: 50px;
}

.contact-third-section-overlay {
    padding: 20px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-third-section-overlay h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-third-section-overlay p {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Circle and arrow styling */
.learn-more-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    margin-top: 10px;
}

.learn-more-button img {
    width: 50%;
    height: 50%;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .contact-third-section {
        flex-direction: column;
        text-align: center;
        padding: 5px 0;
    }

    .contact-third-section-image,
    .contact-third-section-text {
        text-align: center;
        padding: 10px;
    }

    .contact-third-section-text h1 {
        font-size: 36px;
    }

    .contact-third-section-text p {
        font-size: 18px;
    }

    .contact-third-section-about {
        background-position: center;
    }

    .learn-more-button {
        width: 80%;
        height: 80%;
    }

    .learn-more-button img {
        width: 60%;
        height: 60%;
    }
}

@media (max-width: 600px) {
    .contact-second-section-form h2,
    .contact-second-section-info h2,
    .contact-third-section-overlay h2 {
        font-size: 25px;
    }

    .contact-third-section-overlay p {
        font-size: 18px;
    }

    .learn-more-button {
        width: 40%;
        height: 40%;
    }

    .learn-more-button img {
        width: 40%;
        height: 40%;
    }
}
