/* =========================================================
   KONTAKT OSS – NordPair
   ========================================================= */

:root {
    --bg-primary: #04060d;
    --bg-secondary: #0a0d1a;
    --bg-card: rgba(15, 19, 32, 0.55);
    --bg-card-hover: rgba(20, 26, 44, 0.65);
    --bg-input: rgba(8, 11, 22, 0.6);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --text-placeholder: rgba(255, 255, 255, 0.3);

    --accent: #5b8cff;
    --accent-glow: rgba(91, 140, 255, 0.5);
    --accent-soft: rgba(91, 140, 255, 0.1);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-input: rgba(255, 255, 255, 0.08);

    --success: #4ade80;
    --error: #ff6b6b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Aktiv lenke i header */
.site-header__link--active {
    color: var(--text-primary) !important;
}

.site-header__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100% !important;
    height: 1px;
    background: var(--accent);
}

/* =========================================================
   BAKGRUNNS-EFFEKTER
   ========================================================= */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 140, 255, 0.15), transparent),
        linear-gradient(180deg, #04060d 0%, #06091a 50%, #04060d 100%);
    z-index: -3;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(91, 140, 255, 0.3);
    top: 10%;
    right: -10%;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(60, 100, 200, 0.2);
    bottom: 20%;
    left: -10%;
}

/* =========================================================
   FELLES CONTAINER
   ========================================================= */
.contact {
    padding-top: 120px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 60px;
}

/* =========================================================
   HERO + SKJEMA
   ========================================================= */
.contact-hero {
    padding: 40px 0 80px;
}

.contact-hero__container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: start;
}

/* === VENSTRE KOLONNE === */
.contact-hero__content {
    position: relative;
    padding-top: 16px;
    animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-hero__eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 8px 18px;
    background: rgba(91, 140, 255, 0.06);
    border: 1px solid rgba(91, 140, 255, 0.25);
    border-radius: 999px;
}

.contact-hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.contact-hero__title-accent {
    background: linear-gradient(135deg, #5b8cff 0%, #7ba2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Hindrer at descenders klippes av gradient-clip */
    display: inline-block;
    padding-bottom: 0.08em;
    padding-right: 0.12em;
}

.contact-hero__lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 460px;
}

.contact-hero__divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin-bottom: 24px;
    box-shadow: 0 0 12px var(--accent-glow);
}

.contact-hero__response {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Dekorativ "lyspunkt-beam" som i bildet */
.contact-hero__beam {
    position: absolute;
    bottom: -120px;
    left: -20px;
    right: -100px;
    height: 200px;
    pointer-events: none;
    overflow: hidden;
}

.contact-hero__beam::before,
.contact-hero__beam::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.6), transparent);
    height: 1px;
    width: 100%;
    top: 50%;
}

.contact-hero__beam::before {
    transform: rotate(-12deg);
    box-shadow: 0 0 30px rgba(91, 140, 255, 0.5);
}

.contact-hero__beam::after {
    transform: rotate(8deg);
    top: 60%;
    opacity: 0.5;
}

/* === HØYRE KOLONNE: SKJEMA === */
.contact-form-wrap {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    padding: 40px;
    animation: fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
    overflow: hidden;
}

/* Subtilt skinn på toppen av kortet */
.contact-form-wrap__top-glow {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.9), transparent);
    box-shadow: 0 0 24px rgba(91, 140, 255, 0.5);
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form__title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form__field {
    margin-bottom: 22px;
    position: relative;
}

.contact-form__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--text-placeholder);
}

.contact-form__input:hover,
.contact-form__textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(8, 11, 22, 0.8);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(8, 11, 22, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Invalid state */
.contact-form__input:user-invalid,
.contact-form__textarea:user-invalid {
    border-color: rgba(255, 107, 107, 0.5);
}

/* Honeypot – skjult for mennesker */
.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* === SUBMIT-KNAPP === */
.contact-form__submit {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #5b8cff, #4170e8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                opacity 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.5),
        0 8px 24px rgba(91, 140, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 18px;
    overflow: hidden;
}

.contact-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.6),
        0 12px 32px rgba(91, 140, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.contact-form__submit:active:not(:disabled) {
    transform: translateY(0);
}

.contact-form__submit:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.contact-form__submit-icon {
    transition: transform 0.3s ease;
}

.contact-form__submit:hover:not(:disabled) .contact-form__submit-icon {
    transform: translateX(4px);
}

/* Spinner ved sending */
.contact-form__submit-spinner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: spin 0.8s linear infinite;
}

.contact-form__submit.is-loading .contact-form__submit-text,
.contact-form__submit.is-loading .contact-form__submit-icon {
    opacity: 0;
}

.contact-form__submit.is-loading .contact-form__submit-spinner {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === NOTICE (konfidensielt) === */
.contact-form__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 300;
    line-height: 1.5;
}

.contact-form__notice svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form__notice a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 140, 255, 0.3);
    transition: border-color 0.25s ease;
}

.contact-form__notice a:hover {
    border-color: var(--accent);
}

/* === STATUS-MELDINGER === */
.contact-form__status {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    animation: status-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form__status.is-visible {
    display: flex;
}

.contact-form__status strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-form__status p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.contact-form__status--success {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: var(--success);
}

.contact-form__status--error {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: var(--error);
}

.contact-form__status--error a {
    color: var(--accent);
    text-decoration: none;
}

.contact-form__status--error a:hover {
    text-decoration: underline;
}

.contact-form__status svg {
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes status-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HVA SKJER ETTER KONTAKT (3 steg)
   ========================================================= */
.contact-steps {
    margin: 40px 0;
}

.contact-steps__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    padding: 52px 48px;
}

.contact-steps__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 44px;
}

.contact-steps__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.contact-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-step__number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(91, 140, 255, 0.06);
    border: 1.5px solid rgba(91, 140, 255, 0.4);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(91, 140, 255, 0.2);
}

.contact-step__content {
    flex: 1;
}

.contact-step__title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-step__text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-tertiary);
    font-weight: 300;
}

.contact-step__divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border-strong) 30%,
        var(--border-strong) 70%,
        transparent);
    align-self: center;
}

/* =========================================================
   ANIMASJONER
   ========================================================= */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIV
   ========================================================= */
@media (max-width: 1024px) {
    .contact {
        padding-left: 32px;
        padding-right: 32px;
    }

    .contact-hero__container {
        gap: 48px;
    }

    .contact-form-wrap {
        padding: 32px;
    }

    .contact-steps__card {
        padding: 40px 32px;
    }

    .contact-steps__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-step__divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero__beam {
        display: none;
    }
}

@media (max-width: 600px) {
    .contact {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-hero {
        padding: 20px 0 60px;
    }

    .contact-form-wrap {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form__title {
        font-size: 19px;
        margin-bottom: 22px;
    }

    .contact-form__field {
        margin-bottom: 18px;
    }

    .contact-steps__card {
        padding: 32px 22px;
    }

    .contact-steps__title {
        margin-bottom: 32px;
    }

    .contact-steps {
        margin: 20px 0 40px;
    }
}

/* =========================================================
   TILGJENGELIGHET
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}