﻿﻿/* =========================================================
   Contact Page
   ========================================================= */

.contact-page {
    position: relative;
    width: 100%;
    padding: 82px 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(0, 165, 244, 0.055), transparent 28%),
        radial-gradient(circle at 94% 18%, rgba(1, 239, 186, 0.055), transparent 25%),
        #f3fbfc;
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: clamp(30px, 4vw, 66px);
    width: 1360px;
    margin: 50px auto;
}

.contact-info,
.contact-form-box {
    min-width: 0;
}


/* =========================================================
   Contact Heading
   ========================================================= */

.contact-title {
    margin-bottom: 31px;
}

.contact-title-tag {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    padding-left: 39px;
    color: #00A5F4;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.7px;
}

.contact-title-tag::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 29px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, #00A5F4 0%, #01EFBA 100%);
    transform: translateY(-50%);
}

.contact-title h1 {
    margin: 0;
    color: #202d34;
      font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.contact-title-line {
    display: block;
    width: 66px;
    height: 4px;
    margin-top: 17px;
    background: linear-gradient(90deg, #00A5F4 0%, #01EFBA 100%);
    border-radius: 4px;
}

.contact-title p {
    max-width: 650px;
    margin: 20px 0 0;
    color: #66757d;
    font-size: 16px;
    line-height: 1.85;
}


/* =========================================================
   Admin Content
   ========================================================= */

.contact-editor-box {
    position: relative;
    min-height: 360px;
    padding: 34px 35px;
    overflow: hidden;
    color: #58676f;
    font-size: 15px;
    line-height: 1.85;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 49, 59, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 16px 42px rgba(25, 47, 59, 0.08);
}

.contact-editor-box::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #00A5F4 0%, #00C7D5 58%, #01EFBA 100%);
}

.contact-editor-box::after {
    position: absolute;
    top: -75px;
    right: -75px;
    width: 170px;
    height: 170px;
    content: "";
    pointer-events: none;
    background: rgba(0, 165, 244, 0.035);
    border-radius: 50%;
}

.contact-editor-box h1,
.contact-editor-box h2,
.contact-editor-box h3,
.contact-editor-box h4,
.contact-editor-box h5,
.contact-editor-box h6 {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    color: #202d34;
    font-weight: 700;
}

.contact-editor-box h1 {
    font-size: 30px;
    line-height: 1.35;
}

.contact-editor-box h2 {
    font-size: 26px;
    line-height: 1.4;
}

.contact-editor-box h3 {
    font-size: 21px;
    line-height: 1.45;
}

.contact-editor-box h4 {
    font-size: 18px;
    line-height: 1.5;
}

.contact-editor-box p {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    color: #58676f;
    font-size: 15px;
    line-height: 1.85;
}

.contact-editor-box ul,
.contact-editor-box ol {
    position: relative;
    z-index: 2;
    margin: 0 0 18px 22px;
    padding: 0;
}

.contact-editor-box li {
    margin-bottom: 8px;
    color: #58676f;
    font-size: 15px;
    line-height: 1.8;
}

.contact-editor-box strong,
.contact-editor-box b {
    color: #202d34;
    font-weight: 700;
}

.contact-editor-box a {
    color: #00A5F4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-editor-box a:hover {
    color: #01D7C2;
    text-decoration: underline;
}

.contact-editor-box img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.contact-editor-box iframe {
    max-width: 100%;
}

.contact-editor-box blockquote {
    margin: 20px 0;
    padding: 18px 22px;
    color: #58676f;
    font-size: 15px;
    line-height: 1.8;
    background: #f7f9fa;
    border-left: 4px solid #00A5F4;
}

.contact-editor-box table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    background: #ffffff;
}

.contact-editor-box table th,
.contact-editor-box table td {
    padding: 12px 14px;
    color: #58676f;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    border: 1px solid #e3e8eb;
}

.contact-editor-box table th {
    color: #ffffff;
    font-weight: 700;
    background: #263943;
}

.contact-editor-box table td p {
    margin-bottom: 0;
}


/* =========================================================
   Contact Form
   ========================================================= */

.contact-form-box {
    position: relative;
    padding: clamp(36px, 4vw, 54px);
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(145deg, #071827 0%, #073149 55%, #07505A 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 22px 52px rgba(20, 39, 49, 0.2);
}

.contact-form-box::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 280px;
    height: 280px;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(1, 239, 186, 0.18) 0%,
            rgba(0, 165, 244, 0.08) 46%,
            rgba(255, 255, 255, 0) 72%
        );
    border-radius: 50%;
}

.contact-form-box::after {
    position: absolute;
    bottom: -135px;
    left: -115px;
    width: 300px;
    height: 300px;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(0, 165, 244, 0.14) 0%,
            rgba(185, 38, 39, 0) 70%
        );
    border-radius: 50%;
}

.contact-form-head,
#feedback_form {
    position: relative;
    z-index: 2;
}

.contact-form-head {
    margin-bottom: 29px;
}

.contact-form-head > span {
    display: block;
    margin-bottom: 8px;
    color: #01EFBA;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.6px;
}

.contact-form-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 700;
    line-height: 1.25;
}

.contact-form-head p {
    max-width: 610px;
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.75;
}

.contact-form-row {
    position: relative;
    margin-bottom: 17px;
}

.contact-form-row i {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    color: #01EFBA;
    font-size: 17px;
    transform: translateY(-50%);
}

.contact-form-row input,
.contact-form-row textarea {
    display: block;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-form-row input {
    height: 54px;
    padding: 0 18px 0 49px;
    line-height: 54px;
}

.contact-form-row textarea {
    height: 156px;
    padding: 16px 18px 16px 49px;
    line-height: 1.75;
    resize: vertical;
}

.contact-form-textarea i {
    top: 20px;
    transform: none;
}

.contact-form-row input::placeholder,
.contact-form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: #01EFBA;
    box-shadow: 0 0 0 3px rgba(1, 239, 186, 0.13);
}

.contact-form-row.error input,
.contact-form-row.error textarea {
    border-color: #ff5d5f;
    box-shadow: 0 0 0 3px rgba(255, 93, 95, 0.12);
}

.contact-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 50px;
    margin-top: 7px;
    padding: 0 24px;
    overflow: hidden;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #00A5F4 0%, #00C7D5 58%, #01EFBA 100%);
    border: 0;
    border-radius: 5px;
    outline: none;
    box-shadow: 0 12px 26px rgba(0, 165, 244, 0.22);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.contact-submit-btn::before {
    position: absolute;
    top: -70%;
    left: -50%;
    width: 38%;
    height: 240%;
    content: "";
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(25deg);
    transition: left 0.55s ease;
}

.contact-submit-btn span,
.contact-submit-btn i {
    position: relative;
    z-index: 2;
}

.contact-submit-btn i {
    margin-left: 11px;
    transition: transform 0.25s ease;
}

.contact-submit-btn:hover {
    box-shadow: 0 16px 32px rgba(0, 165, 244, 0.30);
    transform: translateY(-3px);
}

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

.contact-submit-btn:hover i {
    transform: translateX(5px);
}


/* =========================================================
   Map
   ========================================================= */

.contact-map {
    width: 100%;
    height: 430px;
    overflow: hidden;
    background: #e8edef;
    border-top: 1px solid rgba(31, 49, 59, 0.08);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}


/* =========================================================
   Loading and Message Dialog
   ========================================================= */

.contact-form-mask {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    background: rgba(12, 25, 32, 0.62);
    opacity: 0;
    transition:
        visibility 0.25s ease,
        opacity 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-form-mask.active {
    visibility: visible;
    opacity: 1;
}

.contact-form-loading,
.contact-form-message {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10001;
    visibility: hidden;
    width: calc(100% - 48px);
    max-width: 390px;
    overflow: hidden;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(31, 49, 59, 0.08);
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 24px 70px rgba(13, 28, 36, 0.28);
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
    transition:
        visibility 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.contact-form-loading::before,
.contact-form-message::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #00A5F4 0%, #01EFBA 100%);
}

.contact-form-loading.active,
.contact-form-message.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.contact-form-loading {
    padding: 38px 28px 34px;
}

.contact-loading-icon {
    margin-bottom: 16px;
    color: #00A5F4;
    font-size: 35px;
}

.contact-form-loading p {
    margin: 0;
    color: #36464e;
    font-size: 15px;
    line-height: 1.65;
}

.contact-form-message {
    padding: 40px 30px 32px;
}

.contact-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    color: #ffffff;
    font-size: 28px;
    background: linear-gradient(135deg, #00A5F4 0%, #01EFBA 100%);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 165, 244, 0.20);
}

.contact-form-message.error .contact-message-icon {
    background: #d83d40;
}

.contact-form-message h3 {
    margin: 0 0 10px;
    color: #202d34;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-form-message p {
    margin: 0;
    color: #66757d;
    font-size: 15px;
    line-height: 1.75;
}

.contact-form-message button {
    min-width: 120px;
    height: 42px;
    margin-top: 24px;
    padding: 0 24px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #00A5F4 0%, #01EFBA 100%);
    border: 0;
    border-radius: 22px;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.contact-form-message button:hover {
    box-shadow: 0 10px 24px rgba(0, 165, 244, 0.22);
    transform: translateY(-2px);
}

.contact-form-message.error button {
    background: #d83d40;
}



/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contact-editor-box a,
    .contact-form-row input,
    .contact-form-row textarea,
    .contact-submit-btn,
    .contact-submit-btn::before,
    .contact-submit-btn i,
    .contact-form-mask,
    .contact-form-loading,
    .contact-form-message,
    .contact-form-message button {
        transition: none;
    }

}
