/* ==========================================================
   Jakin Offerte Aanvraag – Formulier CSS
   Kleuren: dark navy (#1B2A4A) + goud (#C9A017)
   ========================================================== */

/* ── Section wrapper ────────────────────────────────────── */
.jk-offerte-section {
    background: linear-gradient(160deg, #0e1c35 0%, #1B2A4A 55%, #112238 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    font-family: 'Urbanist', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.jk-offerte-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 700px 500px at 80% 20%, rgba(201,160,23,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 10% 80%, rgba(201,160,23,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Inner container ────────────────────────────────────── */
.jk-offerte-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

/* ── Header (title + subtitle) ──────────────────────────── */
.jk-offerte-header {
    text-align: center;
    margin-bottom: 48px;
}

.jk-offerte-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.jk-offerte-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
    margin-inline: auto;
}

/* ── Card ───────────────────────────────────────────────── */
.jk-offerte-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 44px 48px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* ── CF7 form reset ─────────────────────────────────────── */
.jk-offerte-card .wpcf7 form,
.jk-offerte-card .wpcf7-form {
    margin: 0;
}

/* ── Two-column grid ────────────────────────────────────── */
.jk-offerte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    margin-bottom: 22px;
}

@media (max-width: 580px) {
    .jk-offerte-grid {
        grid-template-columns: 1fr;
    }
    .jk-offerte-card {
        padding: 28px 20px;
    }
}

/* ── Field wrapper ──────────────────────────────────────── */
.jk-offerte-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jk-offerte-field--full {
    margin-bottom: 22px;
}

/* ── Labels ─────────────────────────────────────────────── */
.jk-offerte-label,
.jk-offerte-card label {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.jk-offerte-label abbr,
.jk-offerte-card label abbr {
    color: #C9A017;
    text-decoration: none;
    margin-left: 2px;
}

/* ── Inputs ─────────────────────────────────────────────── */
.jk-offerte-input,
.jk-offerte-card .wpcf7-form-control.wpcf7-text,
.jk-offerte-card .wpcf7-form-control.wpcf7-email,
.jk-offerte-card .wpcf7-form-control.wpcf7-tel,
.jk-offerte-card input[type="text"],
.jk-offerte-card input[type="email"],
.jk-offerte-card input[type="tel"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 13px 16px !important;
    font-size: 0.95rem !important;
    font-family: 'Urbanist', sans-serif !important;
    color: #ffffff !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.jk-offerte-input::placeholder,
.jk-offerte-card input::placeholder {
    color: rgba(255, 255, 255, 0.30) !important;
}

.jk-offerte-input:focus,
.jk-offerte-card input:focus {
    border-color: rgba(201, 160, 23, 0.55) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 0 0 3px rgba(201, 160, 23, 0.12) !important;
}

/* ── Select ─────────────────────────────────────────────── */
.jk-offerte-select,
.jk-offerte-card .wpcf7-form-control.wpcf7-select,
.jk-offerte-card select {
    width: 100%;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 13px 16px !important;
    font-size: 0.95rem !important;
    font-family: 'Urbanist', sans-serif !important;
    color: rgba(255, 255, 255, 0.65) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 44px !important;
}

.jk-offerte-select option,
.jk-offerte-card select option {
    background: #1B2A4A !important;
    color: #ffffff !important;
}

.jk-offerte-select:focus,
.jk-offerte-card select:focus {
    border-color: rgba(201, 160, 23, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(201, 160, 23, 0.12) !important;
}

/* ── Textarea ───────────────────────────────────────────── */
.jk-offerte-textarea,
.jk-offerte-card .wpcf7-form-control.wpcf7-textarea,
.jk-offerte-card textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    font-family: 'Urbanist', sans-serif !important;
    color: #ffffff !important;
    resize: vertical !important;
    min-height: 130px !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 1.6 !important;
}

.jk-offerte-textarea::placeholder,
.jk-offerte-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.30) !important;
}

.jk-offerte-textarea:focus,
.jk-offerte-card textarea:focus {
    border-color: rgba(201, 160, 23, 0.55) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 0 0 3px rgba(201, 160, 23, 0.12) !important;
}

/* ── Submit button ──────────────────────────────────────── */
.jk-offerte-submit,
.jk-offerte-card .wpcf7-submit,
.jk-offerte-card input[type="submit"] {
    display: block !important;
    width: 100% !important;
    padding: 16px 28px !important;
    background: #C9A017 !important;
    color: #ffffff !important;
    font-family: 'Urbanist', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 4px 20px rgba(201, 160, 23, 0.35) !important;
    text-align: center !important;
    margin-top: 4px !important;
}

.jk-offerte-submit:hover,
.jk-offerte-card .wpcf7-submit:hover,
.jk-offerte-card input[type="submit"]:hover {
    background: #E8C224 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(201, 160, 23, 0.50) !important;
}

.jk-offerte-submit:active,
.jk-offerte-card .wpcf7-submit:active,
.jk-offerte-card input[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(201, 160, 23, 0.30) !important;
}

/* ── Validation styles ──────────────────────────────────── */
.jk-offerte-card .wpcf7-not-valid {
    border-color: rgba(220, 80, 80, 0.70) !important;
    box-shadow: 0 0 0 3px rgba(220, 80, 80, 0.12) !important;
}

.jk-offerte-card .wpcf7-not-valid-tip {
    color: #ff7070;
    font-size: 0.78rem;
    margin-top: 5px;
    display: block;
}

/* ── CF7 response messages ──────────────────────────────── */
.jk-offerte-card .wpcf7-response-output {
    border: none !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    margin: 16px 0 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* Success */
.jk-offerte-card .wpcf7-mail-sent-ok {
    background: rgba(39, 174, 96, 0.15) !important;
    color: #6de89a !important;
    border-left: 3px solid #27ae60 !important;
}

/* Error */
.jk-offerte-card .wpcf7-mail-sent-ng,
.jk-offerte-card .wpcf7-aborted {
    background: rgba(220, 80, 80, 0.15) !important;
    color: #ff9090 !important;
    border-left: 3px solid #dc5050 !important;
}

/* Validation error */
.jk-offerte-card .wpcf7-validation-errors,
.jk-offerte-card .wpcf7-acceptance-missing {
    background: rgba(255, 165, 0, 0.12) !important;
    color: #ffc96e !important;
    border-left: 3px solid #ffa500 !important;
}

/* ── Spinner ─────────────────────────────────────────────── */
.jk-offerte-card .wpcf7-spinner {
    vertical-align: middle;
    margin-left: 10px;
    filter: invert(1);
}

/* ── CF7 form wrap spans ────────────────────────────────── */
.jk-offerte-card .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ── Scrollbar (webkit) ─────────────────────────────────── */
.jk-offerte-card textarea::-webkit-scrollbar {
    width: 6px;
}
.jk-offerte-card textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.jk-offerte-card textarea::-webkit-scrollbar-thumb {
    background: rgba(201, 160, 23, 0.40);
    border-radius: 3px;
}
