:root {
    --text: #f4f1eb;
    --text-soft: rgba(244, 241, 235, 0.8);
    --accent: #ff6a00;
    --accent-blue: #2b8cff;
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
    --panel-bg: rgba(44, 44, 48, 0.92);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(4, 6, 10, 0.9), rgba(6, 8, 12, 0.94)),
        url("/images/backgroundimage.png") center center / cover no-repeat fixed;
    font-family: "Barlow", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    position: relative;
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 28px clamp(28px, 4vw, 72px) 32px;
}

.page-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.38)),
        radial-gradient(circle at top right, rgba(255, 106, 0, 0.12), transparent 26%);
    pointer-events: none;
}

.site-header,
.main-content,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 4px clamp(10px, 1.2vw, 18px) 20px;
    border-bottom: 5px solid var(--accent);
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: clamp(92px, 12vw, 124px);
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 2vw, 34px);
    padding-inline: 12px;
}

.site-nav a,
.login-link {
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.32rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.login-link:hover {
    color: var(--accent-blue);
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(43, 140, 255, 0.22);
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.login-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.login-icon::before,
.login-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.login-icon::before {
    top: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.login-icon::after {
    bottom: 1px;
    width: 9px;
    height: 5px;
    border-radius: 999px 999px 0 0;
    border-top: 2px solid currentColor;
}

.main-content {
    padding-top: 36px;
}

/* Hero dan panel form dibuat dua kolom seperti referensi */
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
    min-height: min(72vh, 760px);
    padding: clamp(26px, 4vw, 42px);
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.66), rgba(8, 10, 14, 0.72));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-copy {
    max-width: 470px;
    padding-inline: clamp(4px, 1vw, 12px);
}

.contact-kicker {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.contact-copy h1 {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(3rem, 5vw, 5.35rem);
    line-height: 0.88;
    letter-spacing: 0.01em;
}

.contact-copy h1 span {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.9rem, 3vw, 3.15rem);
    line-height: 1.02;
}

.contact-description {
    margin: 28px 0 0;
    max-width: 38ch;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    line-height: 1.65;
}

.contact-form-wrap {
    width: min(100%, 760px);
    margin-left: auto;
}

.form-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.form-alert.success {
    background: rgba(0, 180, 90, 0.14);
    border: 1px solid rgba(0, 180, 90, 0.34);
    color: #dbffea;
}

.form-alert.error {
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.34);
    color: #ffd8d8;
}

.contact-form {
    padding: 26px 22px 18px;
    border: 1px dashed rgba(255, 122, 0, 0.7);
    border-radius: 22px;
    background: var(--panel-bg);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.form-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 14px;
}

.form-row label,
.challenge-label span {
    color: #f3efe8;
    font-size: clamp(1.02rem, 1.2vw, 1.12rem);
}

.form-row input,
.form-row textarea,
.challenge-label input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: #fbfbfb;
    color: #121212;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea {
    min-height: 132px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.challenge-label input:focus {
    border-color: rgba(43, 140, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(43, 140, 255, 0.18);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
}

.challenge-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
}

.challenge-label input {
    width: 72px;
    flex: 0 0 72px;
}

.submit-button {
    min-width: 118px;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #318bff 0%, #1671f3 100%);
    color: #fff;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 28px rgba(22, 113, 243, 0.26);
}

.info-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
    padding: 24px 0 18px;
    border-top: 1px dashed rgba(255, 40, 40, 0.75);
    border-bottom: 1px dashed rgba(255, 40, 40, 0.75);
}

.info-card {
    padding-right: 20px;
}

.info-card h2 {
    margin: 0 0 10px;
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1;
}

.info-card p,
.info-card a {
    margin: 6px 0;
    color: rgba(244, 241, 235, 0.92);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.5;
}

.info-card a:hover,
.site-footer a:hover {
    color: #ffba74;
}

.site-footer {
    padding: 28px 0 8px;
    text-align: center;
}

.site-footer p,
.site-footer a {
    margin: 0;
    color: rgba(244, 241, 235, 0.82);
    font-size: 1rem;
}

@media (max-width: 1180px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
    }

    .login-link {
        justify-self: center;
    }

    .contact-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-copy,
    .contact-form-wrap {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        padding: 18px 16px 24px;
    }

    .site-header {
        border-bottom-width: 4px;
    }

    .site-nav {
        gap: 12px 18px;
    }

    .contact-panel {
        gap: 20px;
        padding: 20px 18px;
    }

    .contact-description {
        margin-top: 20px;
        max-width: none;
    }

    .contact-form {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-label {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .submit-button {
        width: 100%;
    }

    .info-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-card {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .contact-copy h1 {
        font-size: 2.5rem;
    }

    .contact-copy h1 span {
        font-size: 1.65rem;
    }

    .site-nav a,
    .login-link {
        font-size: 0.95rem;
    }

    .challenge-label {
        align-items: flex-start;
    }
}
