/**
 * Contact Section Styles
 *
 * @package Kursai
 * @since 1.0.0
 */

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 80px 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 79px,
            rgba(230, 232, 236, 0.5) 79px,
            rgba(230, 232, 236, 0.5) 80px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(230, 232, 236, 0.5) 79px,
            rgba(230, 232, 236, 0.5) 80px
        ),
        #ffffff;
    position: relative;
}

/* Fade overlay at top */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, #ffffff 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Fade overlay at bottom */
.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, #ffffff 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Contact Info (Left Side)
   ========================================================================== */
.contact__info {
    max-width: 500px;
}

.contact__title {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #252a36;
    margin: 0 0 24px 0;
}

.contact__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    color: #777e90;
    margin: 0 0 8px 0;
}

.contact__text--highlight {
    margin-bottom: 32px;
}

/* ==========================================================================
   Contact Details
   ========================================================================== */
.contact__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact__detail-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #252a36;
}

.contact__detail span,
.contact__detail a {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    color: #252a36;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact__detail a:hover {
    color: #3671ff;
}

/* ==========================================================================
   Contact Form (Right Side)
   ========================================================================== */
.contact__form-wrapper {
    width: 100%;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #12142d;
}

.contact__input {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    background: #f9f9f9;
    border: 1px solid #e6e8ec;
    border-radius: 15px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #252a36;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact__input::placeholder {
    color: #777e90;
}

.contact__input:focus {
    outline: none;
    border-color: #3671ff;
    background: #ffffff;
}

.contact__input--textarea {
    height: 104px;
    padding: 16px 20px;
    resize: vertical;
    min-height: 104px;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.contact__submit {
    width: fit-content;
    padding: 14px 32px;
    background: #3671ff;
    border: none;
    border-radius: 15px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #f8f9fb;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact__submit:hover {
    background: #2860e6;
}

.contact__submit:active {
    transform: scale(0.98);
}

.contact__submit:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

/* ==========================================================================
   Form Messages
   ========================================================================== */
.contact__message {
    padding: 16px 20px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.contact__message--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.contact__message--error {
    background: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .contact {
        padding: 60px 0;
    }

    .contact__container {
        gap: 50px;
    }

    .contact__title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 50px 0;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 19px;
    }

    .contact__info {
        max-width: 100%;
    }

    .contact__title {
        font-size: 32px;
    }

    .contact__submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 40px 0;
    }

    .contact__container {
        padding: 0 15px;
    }

    .contact__title {
        font-size: 28px;
    }

    .contact__input {
        height: 50px;
        padding: 0 16px;
    }

    .contact__input--textarea {
        padding: 14px 16px;
    }
}
