/* Stylesheet til kontaktsiden — den todelte boks med kontaktinfo i
   venstre side og selve formularen i højre side. */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; }

body {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
}

/* Wrapper */
.contact-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Left side */
.contact-left {
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #fff;
    background: var(--ink);
}

.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
}

h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
h1 span { font-weight: 400; color: rgba(255,255,255,.6); }

.contact-intro { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); }

.contact-info { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .85rem;
    transition: color .2s;
}

.info-item i { font-size: 18px; color: var(--teal); }
.info-item:hover { color: #fff; }

/* Form */
form {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.field { display: flex; flex-direction: column; gap: 6px; }

label { font-size: 12px; font-weight: 500; color: var(--muted); }

input, textarea {
    width: 100%;
    padding: 11px 15px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s;
    resize: none;
}

input::placeholder, textarea::placeholder { color: #a7b0b0; }
input:focus, textarea:focus { border-color: var(--teal); background: #fff; }
input.invalid, textarea.invalid { border-color: #d64545; }

.error-msg { font-size: 11px; color: #d64545; min-height: 14px; }
.submit-error { min-height: 0; text-align: center; }
.submit-error:empty { display: none; }

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--teal);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

.submit-btn:hover { background: var(--teal-dark); }

.success-msg {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(4,148,155,.1);
    border: 1px solid rgba(4,148,155,.3);
    border-radius: 10px;
    color: var(--teal-dark);
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-left { padding: 40px 28px 28px; }
    form { padding: 28px; }
    h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    body { padding: 80px 4% 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-wrapper { border-radius: 18px; }
}
