/* =========================================================
   APADANA CONTACT SECTION
   FULL WIDTH / ISOLATED RESPONSIVE LAYOUT
   ========================================================= */

.apd-contact-section {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 50px 30px 20px;

    box-sizing: border-box;

    direction: ltr;

    overflow-x: hidden;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.apd-contact-layout {
    width: 100%;
    max-width: none;
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 500px);

    grid-template-areas:
        "map map"
        "message info";

    gap: 15px;

    align-items: stretch;

    margin: 0 0 30px;
}


/* =========================================================
   GRID ITEMS
   ========================================================= */

.apd-map-card {
    grid-area: map;

    width: 100%;
    max-width: none;
    min-width: 0;
}


.apd-contact-info-card {
    grid-area: info;
text-align: right;
    width: 100%;
    max-width: none;
    min-width: 0;
}


.apd-message-section {
    grid-area: message;

    width: 100%;
    max-width: none;
    min-width: 0;

    display: flex;
    align-items: stretch;
    justify-content: stretch;
    direction: rtl;
    margin: 0;
}


/* =========================================================
   COMMON CARDS
   ========================================================= */

.apd-contact-info-card,
.apd-map-card,
.apd-message-card {

    width: 100%;
    max-width: none;
    min-width: 0;

    box-sizing: border-box;

    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    background: rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;
}


/* =========================================================
   MESSAGE CARD
   ========================================================= */

.apd-message-card {

    width: 100%;
    max-width: none;
    min-width: 0;

    flex: 1 1 auto;

    margin: 0;

    padding: 12px;

    box-sizing: border-box;
}


/* =========================================================
   FORM
   ========================================================= */

.apd-contact-form {

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    gap: 12px;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.apd-form-header {

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 8px 14px;

    box-sizing: border-box;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    text-align: right;
}


.apd-form-header h3 {

    margin: 0;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.5;
}


.apd-form-header p {

    margin: 0;

    font-size: 14px;

    opacity: 0.55;

    line-height: 1.8;
}


/* =========================================================
   IMPORTANT:
   ISOLATE THE FORM FROM OLD .fields-grid/.field CSS
   ========================================================= */

.apd-contact-form > .fields-grid {

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 10px;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.apd-contact-form > .fields-grid > .field,
.apd-contact-form > .field {

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;

    box-sizing: border-box;

    position: relative;
}


/* =========================================================
   FULL WIDTH TEXTAREA
   ========================================================= */

.apd-contact-form > .field.span-3 {

    grid-column: 1 / -1;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}


/* =========================================================
   FORM INPUTS
   ========================================================= */

.apd-contact-form input,
.apd-contact-form textarea,
.apd-contact-form select {

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    box-sizing: border-box;

    margin: 0;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.apd-contact-form textarea {

    display: block;

    width: 100% !important;

    min-height: 130px;

    max-width: none !important;

    resize: vertical;

    box-sizing: border-box;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.apd-form-submit {

    width: 100%;

    display: flex;

    justify-content: flex-start;

    margin: 5px 0 0;
}


/* =========================================================
   MAP
   ========================================================= */

.apd-map-card {

    display: flex;
    flex-direction: column;

    min-height: 200px;

    margin: 0;
}


.apd-map-container {

    position: relative;

    flex: 1 1 auto;

    width: 100%;
    min-width: 0;

    min-height: 200px;

    padding: 6px;

    box-sizing: border-box;
}


.apd-leaflet-map {

    width: 100%;
    height: 100%;

    min-height: 200px;

    border-radius: 14px;

    overflow: hidden;
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.apd-card-header {

    width: 100%;

    padding: 14px 16px;

    box-sizing: border-box;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.apd-card-header h3 {

    margin: 0;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.5;
}


.apd-contact-info-list {

    width: 100%;

    display: flex;
    flex-direction: column;

    padding: 8px 0;
}


.apd-contact-info-item {

    width: 100%;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    box-sizing: border-box;

    direction: rtl;

    text-align: right;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.apd-contact-info-item:hover {

    background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   ICON
   ========================================================= */

.apd-contact-icon {

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgb(253, 253, 252);

    color: #a21c43;

    font-size: 17px;

    box-sizing: border-box;

    order: 1;
}


/* =========================================================
   TEXT
   ========================================================= */

.apd-contact-info-content {

    flex: 1 1 auto;

    min-width: 0;

    order: 2;

    text-align: right;

    direction: rtl;
}


.apd-contact-info-label {

    display: block;

    margin-bottom: 7px;

    color: #a21c43;

    font-size: 16px;
    font-weight: 600;

    opacity: 1;
}


.apd-contact-info-content p {

    margin: 0;

    font-size: 14px;

    color: #fff;

    line-height: 1.9;

    overflow-wrap: anywhere;

    word-break: normal;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.apd-submit-button {

    min-width: 170px;
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 12px 24px;

    box-sizing: border-box;

    border: 0;
    border-radius: 12px;

    background: #a21c43;

    color: #fdfdfd;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


.apd-submit-button:hover {

    transform: translateY(-2px);

    filter: brightness(1.05);

    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.212);
}


.apd-submit-button:active {

    transform: translateY(0);
}


/* =========================================================
   LARGE TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .apd-contact-section {

        padding-left: 30px;
        padding-right: 30px;
    }


    .apd-contact-layout {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(260px, 420px);

        gap: 20px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .apd-contact-section {

        padding: 40px 22px 70px;
    }


    .apd-contact-layout {

        grid-template-columns: 1fr;

        grid-template-areas:
            "message"
            "info"
            "map";

        gap: 24px;
    }


    .apd-message-section,
    .apd-message-card,
    .apd-contact-info-card,
    .apd-map-card {

        width: 100% !important;
        max-width: none !important;
    }


    .apd-map-card {

        min-height: 400px;
    }


    .apd-map-container {

        min-height: 350px;
    }


    .apd-leaflet-map {

        min-height: 320px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .apd-contact-section {

        padding: 30px 15px 60px;
    }


    .apd-contact-layout {

        gap: 18px;
    }


    .apd-contact-info-card,
    .apd-map-card,
    .apd-message-card {

        border-radius: 16px;
    }


    /* Form fields become one column */

    .apd-contact-form > .fields-grid {

        grid-template-columns: 1fr !important;

        gap: 18px;
    }


    .apd-contact-form > .field.span-3 {

        grid-column: auto;
    }


    .apd-card-header {

        padding: 18px 20px;
    }


    .apd-card-header h3 {

        font-size: 18px;
    }


    .apd-contact-info-item {

        gap: 13px;

        padding: 19px 20px;
    }


    .apd-contact-icon {

        flex-basis: 40px;

        width: 40px;
        height: 40px;

        border-radius: 10px;

        font-size: 15px;
    }


    .apd-contact-info-content p {

        font-size: 13px;

        line-height: 1.8;
    }


    .apd-map-container {

        min-height: 320px;

        padding: 12px;
    }


    .apd-leaflet-map {

        min-height: 295px;

        border-radius: 11px;
    }


    .apd-message-card {

        padding: 18px;
    }


    .apd-contact-form {

        gap: 18px;
    }


    .apd-form-header h3 {

        font-size: 18px;
    }


    .apd-form-header p {

        font-size: 13px;
    }


    .apd-form-submit {

        width: 100%;
    }


    .apd-submit-button {

        width: 100%;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .apd-contact-section {

        padding-left: 10px;
        padding-right: 10px;
    }


    .apd-message-card {

        padding: 14px;
    }


    .apd-contact-info-item {

        padding-left: 15px;
        padding-right: 15px;
    }


    .apd-contact-icon {

        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }


    .apd-contact-info-content p {

        font-size: 12px;
    }
}


/* =========================================================
   HARD WIDTH ISOLATION
   Prevent old plugin/theme CSS from affecting this section
   ========================================================= */

.apd-contact-section *,
.apd-contact-section *::before,
.apd-contact-section *::after {

    box-sizing: border-box;
}


.apd-contact-section .apd-contact-layout,
.apd-contact-section .apd-message-section,
.apd-contact-section .apd-message-card,
.apd-contact-section .apd-contact-form,
.apd-contact-section .fields-grid,
.apd-contact-section .field {

    max-width: none !important;
}


.apd-contact-section .apd-message-section,
.apd-contact-section .apd-message-card,
.apd-contact-section .apd-contact-form,
.apd-contact-section .fields-grid {

    width: 100% !important;
}


.apd-contact-section img,
.apd-contact-section svg {

    max-width: 100%;
}


.apd-contact-section .simplebar-content {

    width: 100%;
}


.apd-contact-section .simplebar-track {

    z-index: 10;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.apd-submit-button:focus-visible,
.apd-contact-form input:focus-visible,
.apd-contact-form textarea:focus-visible {

    outline: 2px solid #a21c43;

    outline-offset: 3px;
}