/* ======================================== */
/* content                                  */
/* ======================================== */

.contact-section {
    position: relative;
    direction: rtl;
    overflow: hidden;
    padding: 105px 0 115px;
    isolation: isolate;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 74, 66, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 74, 66, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    pointer-events: none;
}

.contact-section::after {
    content: "";
    position: absolute;
    top: -210px;
    left: -170px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.1) 64%, transparent 72%);
    filter: blur(2px);
    pointer-events: none;
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: stretch;
}

/* ======================================== */
/* info side                                */
/* ======================================== */

.contact-info {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 242, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 34px 78px rgba(16, 47, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
}

.contact-info::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 245px;
    height: 245px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(26, 74, 66, 0.18), rgba(26, 74, 66, 0.035) 66%, transparent 72%);
    pointer-events: none;
}

.contact-info::after {
    content: "";
    position: absolute;
    left: -85px;
    bottom: -105px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.08) 64%, transparent 72%);
    pointer-events: none;
}

.section-title-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.title-watermark {
    position: absolute;
    top: -34px;
    right: -4px;
    color: rgba(26, 74, 66, 0.065);
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 4px;
    white-space: nowrap;
    pointer-events: none;
}

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
    color: #102f2a;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: -0.8px;
}

.section-title span {
    color: #1a4a42;
    font-size: 38px;
    line-height: 1;
}

.contact-text {
    position: relative;
    z-index: 2;
    max-width: 590px;
    margin: 0 0 32px;
    color: rgba(16, 47, 42, 0.72);
    font-size: 15px;
    font-weight: 500;
    line-height: 2.15;
    text-align: justify;
}

/* ======================================== */
/* cards                                    */
/* ======================================== */

.contact-cards {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 20px 21px;
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 245, 242, 0.52));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 38px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #1a4a42, rgba(26, 74, 66, 0.18));
    opacity: 0.85;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(26, 74, 66, 0.22);
    box-shadow:
        0 26px 52px rgba(16, 47, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.contact-card__icon {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background:
        linear-gradient(145deg, rgba(26, 74, 66, 0.14), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(26, 74, 66, 0.12);
    box-shadow:
        0 14px 28px rgba(16, 47, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 22px;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.contact-card:hover .contact-card__icon {
    transform: rotate(-4deg) scale(1.06);
    background:
        linear-gradient(145deg, rgba(26, 74, 66, 0.2), rgba(255, 255, 255, 0.8));
}

.contact-card__content {
    min-width: 0;
}

.contact-card h3 {
    margin: 0 0 7px;
    color: #102f2a;
    font-size: 15.5px;
    font-weight: 900;
    line-height: 1.6;
}

.contact-card p {
    margin: 0;
    color: rgba(16, 47, 42, 0.64);
    font-size: 13.8px;
    font-weight: 500;
    line-height: 1.9;
    direction: rtl;
}

/* ======================================== */
/* form side                                */
/* ======================================== */

.contact-form-wrapper {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border-radius: 40px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 242, 0.54));
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow:
        0 38px 86px rgba(16, 47, 42, 0.16),
        0 14px 34px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
}

.contact-form-wrapper::before {
    content: "";
    position: absolute;
    top: -130px;
    left: -100px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(26, 74, 66, 0.16), rgba(26, 74, 66, 0.035) 68%, transparent 74%);
    pointer-events: none;
}

.contact-form-wrapper::after {
    content: "";
    position: absolute;
    right: 34px;
    top: 34px;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(26, 74, 66, 0.1), rgba(255, 255, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.65);
    transform: rotate(10deg);
    pointer-events: none;
}

.contact-form-head {
    position: relative;
    z-index: 2;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(26, 74, 66, 0.1);
}

.contact-form-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #1a4a42;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.8;
}

.contact-form-head span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a4a42;
    box-shadow: 0 0 0 6px rgba(26, 74, 66, 0.11);
}

.contact-form-head h3 {
    margin: 0 0 8px;
    color: #102f2a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: -0.5px;
}

.contact-form-head p {
    margin: 0;
    color: rgba(16, 47, 42, 0.62);
    font-size: 13.6px;
    font-weight: 500;
    line-height: 2;
}

/* ======================================== */
/* form                                     */
/* ======================================== */

.contact-form {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: #102f2a;
    font-family: "IRANSansWeb", "IRANSans", sans-serif;
    font-size: 13.8px;
    font-weight: 900;
    line-height: 1.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(26, 74, 66, 0.13);
    border-radius: 18px;
    padding: 15px 17px;
    color: #102f2a;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 242, 0.5));
    box-shadow:
        0 10px 24px rgba(16, 47, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    outline: none;
    font-family: "IRANSansWeb", "IRANSans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease,
        transform 0.28s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(16, 47, 42, 0.42);
    font-family: "IRANSansWeb", "IRANSans", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(26, 74, 66, 0.48);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 16px 34px rgba(16, 47, 42, 0.09),
        0 0 0 5px rgba(26, 74, 66, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 158px;
    resize: vertical;
}

/* ======================================== */
/* button                                   */
/* ======================================== */

.contact-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 4px;
    border: none;
    border-radius: 19px;
    padding: 16px 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #102f2a 0%, #1a4a42 52%, #245f55 100%);
    box-shadow:
        0 20px 40px rgba(16, 47, 42, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-family: "IRANSansWeb", "IRANSans", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: -90%;
    width: 70%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    transition: right 0.65s ease;
}

.contact-btn span {
    position: relative;
    z-index: 2;
    font-family: "IRANSansWeb", "IRANSans", sans-serif;
}

.contact-btn:hover {
    transform: translateY(-4px);
    filter: saturate(1.06);
    box-shadow:
        0 28px 58px rgba(16, 47, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-btn:hover::before {
    right: 125%;
}

.contact-btn:active {
    transform: translateY(-1px);
}

.contact-section input,
.contact-section textarea,
.contact-section button {
    font-family: "IRANSansWeb", "IRANSans", sans-serif;
}

.contact-section a:focus-visible,
.contact-section button:focus-visible,
.contact-section input:focus-visible,
.contact-section textarea:focus-visible {
    outline: 3px solid rgba(26, 74, 66, 0.24);
    outline-offset: 4px;
}
