:root {
    --gallery-gap: 3rem;
    --navbar-height: 4.75rem;
    --page-horizontal-padding: 1rem;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #eee;
    overflow-x: hidden;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    background-color: #1e1e1e;

    background-image:
            linear-gradient(
                    rgba(0, 0, 0, 0.40),
                    rgba(0, 0, 0, 0.4)
            ),
            url("/images/contact-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


.contact-section {
    flex: 1 0 auto;
    width: 100%;
    padding: calc(var(--navbar-height) + 2.25rem) var(--page-horizontal-padding) 6rem;

    display: flex;
    align-items: center;
    justify-content: center;

    scroll-margin-top: calc(var(--navbar-height) + 1rem);

    opacity: 0.8;
}

.contact-wrapper {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(34, 34, 54, 0.88);
    border-radius: 12px;
    padding: 2rem 2rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-col {
    flex: 1 1 0;
}

.contact-title {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
    color: #ffd700;
    letter-spacing: 0.04em;
}

.contact-subtitle {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 1.6rem;
}

/* FORM ELEMENTS */

.contact-form .contact-label {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #f5f5f5;
}

.contact-hint {
    font-size: 0.8rem;
    color: #b5b5b5;
    font-weight: 400;
}

.contact-input,
.contact-textarea {
    background-color: rgba(10, 10, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.95rem;
}

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

.contact-input:focus,
.contact-textarea:focus {
    background-color: rgba(10, 10, 26, 0.96);
    color: #fff;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.18);
}

.contact-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-word-hint {
    font-size: 0.8rem;
    color: #c2c2c2;
}

/* BUTTON */

.contact-submit-btn {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border-width: 1px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.contact-submit-btn:hover {
    background-color: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* FOOTER */

.footer-nav {
    flex-shrink: 0;
    margin-top: auto;
}

/* OVERLAY */

.contact-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.contact-overlay[hidden] {
    display: none;
}

.contact-overlay-content {
    background: rgba(34, 34, 54, 0.97);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-overlay-icon {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.contact-overlay-message {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #f5f5f5;
}

.contact-overlay-close-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    border: 1px solid #ffd700;
    background: transparent;
    color: #ffd700;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-overlay-close-btn:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.03);
}


@media (min-width: 1200px) {
    :root {
        --navbar-height: 5rem;
    }

    .contact-section {
        padding: calc(var(--navbar-height) + 2.5rem) 2rem 6.5rem;
    }

    .contact-card {
        padding: 2.25rem 2.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}


@media (max-width: 1199.98px) and (min-width: 992px) {
    :root {
        --navbar-height: 4.75rem;
    }

    .contact-section {
        padding: calc(var(--navbar-height) + 2rem) 1.5rem 5.5rem;
    }

    .contact-card {
        padding: 2rem 2rem;
    }
}


@media (max-width: 991.98px) and (min-width: 768px) {
    :root {
        --navbar-height: 4.25rem;
    }

    .skylock-navbar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }

    body {
        background-attachment: scroll;
    }

    .contact-section {
        align-items: flex-start;
        padding: calc(var(--navbar-height) + 1.75rem) 1.5rem 5.5rem;
        opacity: 1;
    }

    .contact-card {
        padding: 1.9rem 1.7rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-row {
        gap: 0.9rem;
    }
}


@media (max-width: 767.98px) and (min-width: 576px) {
    :root {
        --navbar-height: 4rem;
    }

    .skylock-navbar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }

    body {
        background-attachment: scroll;
    }

    .contact-section {
        flex: 1 0 auto;
        align-items: flex-start;
        justify-content: center;
        padding: calc(var(--navbar-height) + 1.5rem) 1.25rem 5.75rem;
        opacity: 1;
    }

    .contact-wrapper {
        margin-top: 0;
    }

    .contact-card {
        padding: 1.8rem 1.5rem;
    }

    .contact-title {
        font-size: 1.65rem;
    }

    .contact-row {
        flex-direction: column;
        gap: 0.85rem;
    }

    .footer-nav {
        margin-top: 2rem !important;
    }
}



@media (max-width: 575.98px) {
    :root {
        --navbar-height: 3.75rem;
        --page-horizontal-padding: 0.75rem;
    }

    .skylock-navbar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }

    body {
        background-attachment: scroll;
    }

    .contact-section {
        flex: 1 0 auto;
        align-items: flex-start;
        justify-content: center;
        padding: calc(var(--navbar-height) + 1.25rem) var(--page-horizontal-padding) 5.5rem;
        opacity: 1;
    }

    .contact-wrapper {
        margin-top: 0;
    }

    .contact-card {
        padding: 1.6rem 1.3rem;
    }

    .contact-title {
        font-size: 1.55rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
    }

    .contact-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-nav {
        margin-top: 2rem !important;
    }

    .contact-overlay-content {
        padding: 1.6rem 1.4rem;
    }

    .contact-overlay-message {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .skylock-links {
        z-index: 99999 !important;
        position: absolute !important;
    }
}
