/* =====================================================
   AT Wire — Kontakt page styles
   Mirrors the egdesign.html reference layout.
   ===================================================== */

/* ── Page background ── */
.kontakt-bg {
    background:
        radial-gradient(circle at top left,    rgba(0,143,208,.05),  transparent 45%),
        radial-gradient(circle at top right,   rgba(0,143,208,.045), transparent 45%),
        radial-gradient(circle at bottom left, rgba(0,143,208,.035), transparent 50%),
        radial-gradient(circle at bottom right,rgba(0,143,208,.045), transparent 50%),
        linear-gradient(to bottom, #ffffff, #f8fbff);
}

/* ── Wrapper ── */
.contact-wrap {
    padding: 32px 0 60px;
}

/* ── 2-column grid: info+form | map ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    margin-top: 28px;
}
@media (max-width: 980px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Card ── */
.atw-card {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(11,18,32,.10);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(11,18,32,.10);
    overflow: hidden;
}

.atw-card-head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(11,18,32,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.atw-card-head h2 {
    margin: 0;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #2E81C0;
}

.atw-card-head .atw-muted {
    font-size: 12.5px;
    color: rgba(11,18,32,.62);
    font-weight: 700;
}

.atw-card-body {
    padding: 16px;
}

/* ── Info grid (6 items) ── */
.atw-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 620px) {
    .atw-info-grid { grid-template-columns: 1fr; }
}

.atw-info {
    border-radius: 16px;
    border: 1px solid rgba(11,18,32,.08);
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,251,255,.98));
}

.atw-info .k {
    margin: 0 0 8px;
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #2E81C0;
}

.atw-info .v {
    margin: 0;
    color: rgba(11,18,32,.70);
    line-height: 1.6;
    font-size: 14px;
}

.atw-info a {
    color: rgba(11,18,32,.85);
    text-decoration: none;
    font-weight: 900;
}
.atw-info a:hover { color: #2E81C0; }

/* ── Nested form card ── */
.atw-form-card {
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid rgba(11,18,32,.10);
    overflow: hidden;
    background: #fff;
}

/* ── Form ── */
.atw-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}
@media (max-width: 768px) {
    .atw-form { grid-template-columns: 1fr; }
}

.atw-field { display: flex; flex-direction: column; }
.atw-field.full { grid-column: 1 / -1; }

.atw-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #2E81C0;
}

/* Text Inputs, Selects, Textareas */
.atw-field input:not([type="checkbox"]),
.atw-field select,
.atw-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(11,18,32,.12);
    background: rgba(255,255,255,.98);
    padding: 12px 14px;
    font: inherit;
    font-size: 14.5px;
    color: #0b1220;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.atw-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.atw-field textarea {
    min-height: 140px;
    resize: vertical;
}

.atw-field input:focus,
.atw-field select:focus,
.atw-field textarea:focus {
    border-color: rgba(46,129,192,.35);
    box-shadow: 0 0 0 4px rgba(46,129,192,.10);
}

.atw-field input::placeholder,
.atw-field textarea::placeholder {
    color: rgba(11,18,32,.35);
}

/* ── Privacy + submit row ── */
.atw-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.atw-privacy {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    color: rgba(11,18,32,.75);
    line-height: 1.5;
    max-width: 600px;
    cursor: pointer;
}

/* Fix for checkbox appearance and size */
.atw-privacy input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #2E81C0;
    cursor: pointer;
    accent-color: #2E81C0;
    /* Reset inherited styles from .atw-field input if any */
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.atw-privacy label {
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
    font-weight: 500;
    margin: 0;
    display: inline; /* Ensure text flows correctly */
}

.atw-privacy a {
    color: #2E81C0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.atw-privacy a:hover { color: #1e5a8a; }

.atw-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid rgba(46,129,192,.22);
    background: linear-gradient(90deg, rgba(70,194,255,.20), rgba(46,129,192,.14));
    color: #2E81C0;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12.5px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    white-space: nowrap;
}
.atw-btn-primary:hover {
    transform: translateY(-1px);
    border-color: rgba(46,129,192,.40);
    background: linear-gradient(90deg, rgba(70,194,255,.30), rgba(46,129,192,.22));
}

/* ── Form hint / status ── */
.atw-form-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
}

/* ── Success / error banners ── */
.atw-banner {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}
.atw-banner.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.atw-banner.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.atw-banner svg { flex-shrink: 0; margin-top: 1px; }

/* ── Map aside ── */
.atw-map-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.atw-map-card .atw-card-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.atw-map-card iframe {
    width: 100%;
    flex: 1;
    min-height: 520px;
    border: 0;
    display: block;
}
