/* ==========================================================================
   Stegeman Hasselt — Contact Page Styles
   Loaded AFTER Gravity Forms to override Orbital theme.
   ========================================================================== */

/* ---------- Contact Grid ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ---------- Contact Cards ---------- */
.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
}

.contact-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-card__icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.contact-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.contact-card a {
    display: block;
    color: var(--blue);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 2px;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card span {
    font-size: 13px;
    color: var(--gray-400);
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* ---------- Process Steps ---------- */
.contact-process {
    margin-top: 32px;
    padding: 28px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.contact-process h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-process__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-process__step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-process__num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-process__step strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.contact-process__step p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}


/* ==========================================================================
   FORM CARD — Premium Design
   ========================================================================== */

.contact-form__card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 12px 40px rgba(0, 31, 61, .08),
                0 2px 8px rgba(0, 31, 61, .04);
    overflow: visible;
    position: sticky;
    top: 120px;
    transition: box-shadow .3s ease;
}

.contact-form__card:hover {
    box-shadow: 0 16px 48px rgba(0, 31, 61, .1),
                0 4px 12px rgba(0, 31, 61, .05);
}

/* Gradient accent bar */
.contact-form__header {
    padding: 28px 32px 20px;
    position: relative;
}

.contact-form__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 50%, var(--blue-deep) 100%);
    border-radius: 20px 20px 0 0;
}

.contact-form__header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.contact-form__header p {
    font-size: 13.5px;
    color: var(--gray-400);
    margin: 0;
    line-height: 1.5;
}

.contact-form__body {
    padding: 24px 32px 32px;
}

.contact-form__fallback {
    padding: 32px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.contact-form__fallback a {
    color: var(--blue);
    font-weight: 600;
}


/* ==========================================================================
   GRAVITY FORMS OVERRIDES
   Using body prefix + wrapper class for maximum specificity.
   These selectors beat GF's inline #gform_wrapper_N[data-form-index] styles.
   ========================================================================== */

/* --- Reset Orbital Theme Variables --- */
body .contact-form__body .gform_wrapper.gform-theme--orbital,
body .contact-form__body .gform_wrapper[data-form-theme="orbital"],
body .contact-form__body .gform_wrapper.gform-theme {
    --gf-color-primary: #4e8cd0 !important;
    --gf-color-primary-rgb: 78, 140, 208 !important;
    --gf-color-primary-darker: #004480 !important;
    --gf-color-primary-lighter: #2b87d1 !important;
    --gf-color-in-ctrl-primary: #4e8cd0 !important;
    --gf-color-in-ctrl-primary-rgb: 78, 140, 208 !important;
    --gf-ctrl-border-color: #c9d1dc !important;
    --gf-ctrl-label-color-primary: #2d3748 !important;
    --gf-ctrl-label-color-secondary: #6b7a90 !important;
    --gf-radius: 10px !important;
    --gf-color-in-ctrl: #ffffff !important;
    --gf-color-out-ctrl-light: rgba(17, 35, 55, 0.06) !important;
}

/* --- Wrapper --- */
body .contact-form__body .gform_wrapper {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-body) !important;
}

/* --- Fields Layout --- */
body .contact-form__body .gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    grid-row-gap: 20px !important;
}

body .contact-form__body .gform_wrapper .gfield {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide honeypot */
body .contact-form__body .gform_validation_container,
body .contact-form__body .gfield--type-honeypot {
    display: none !important;
}

/* --- Labels --- */
body .contact-form__body .gform_wrapper .gfield_label,
body .contact-form__body .gform_wrapper .gform-field-label {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #2d3748 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

/* Legend (name field group label) */
body .contact-form__body .gform_wrapper fieldset legend.gform-field-label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
}

/* Sub-labels (Voornaam / Achternaam) */
body .contact-form__body .gform_wrapper .gform-field-label--type-sub {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #8d99ae !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

/* Required text */
body .contact-form__body .gform_wrapper .gfield_required_text {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #8d99ae !important;
}

/* --- Field Descriptions --- */
body .contact-form__body .gform_wrapper .gfield_description {
    font-size: 12.5px !important;
    color: #8d99ae !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

/* --- Name Field Grid --- */
body .contact-form__body .gform_wrapper .ginput_container--name,
body .contact-form__body .gform_wrapper .ginput_container_name,
body .contact-form__body .gform_wrapper .gform-grid-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
}

body .contact-form__body .gform_wrapper .name_first,
body .contact-form__body .gform_wrapper .name_last,
body .contact-form__body .gform_wrapper .gform-grid-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    flex: none !important;
}

/* --- Fieldset Reset --- */
body .contact-form__body .gform_wrapper fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* --- All Inputs --- */
body .contact-form__body .gform_wrapper input[type="text"],
body .contact-form__body .gform_wrapper input[type="email"],
body .contact-form__body .gform_wrapper input[type="tel"],
body .contact-form__body .gform_wrapper input[type="url"],
body .contact-form__body .gform_wrapper input[type="number"],
body .contact-form__body .gform_wrapper textarea,
body .contact-form__body .gform_wrapper select {
    width: 100% !important;
    padding: 13px 16px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #1a202c !important;
    background: #ffffff !important;
    border: 1.5px solid #c9d1dc !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0, 31, 61, .04) !important;
    transition: all .2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    height: auto !important;
}

/* Placeholder */
body .contact-form__body .gform_wrapper input::placeholder,
body .contact-form__body .gform_wrapper textarea::placeholder {
    color: #adb8c8 !important;
    font-weight: 400 !important;
}

/* Hover */
body .contact-form__body .gform_wrapper input[type="text"]:hover,
body .contact-form__body .gform_wrapper input[type="email"]:hover,
body .contact-form__body .gform_wrapper input[type="tel"]:hover,
body .contact-form__body .gform_wrapper textarea:hover,
body .contact-form__body .gform_wrapper select:hover {
    border-color: #adb8c8 !important;
    box-shadow: 0 2px 6px rgba(0, 31, 61, .06) !important;
}

/* Focus — accent glow */
body .contact-form__body .gform_wrapper input[type="text"]:focus,
body .contact-form__body .gform_wrapper input[type="email"]:focus,
body .contact-form__body .gform_wrapper input[type="tel"]:focus,
body .contact-form__body .gform_wrapper input[type="url"]:focus,
body .contact-form__body .gform_wrapper textarea:focus,
body .contact-form__body .gform_wrapper select:focus {
    border-color: #4e8cd0 !important;
    box-shadow: 0 0 0 4px rgba(78, 140, 208, .12),
                0 2px 8px rgba(0, 31, 61, .06) !important;
    outline: none !important;
}

/* --- Select Dropdown --- */
body .contact-form__body .gform_wrapper select {
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238d99ae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    cursor: pointer !important;
}

/* --- Textarea --- */
body .contact-form__body .gform_wrapper textarea {
    min-height: 140px !important;
    resize: vertical !important;
    line-height: 1.65 !important;
}

/* --- Character Counter --- */
body .contact-form__body .gform_wrapper .ginput_counter,
body .contact-form__body .gform_wrapper .charleft {
    font-size: 11.5px !important;
    color: #adb8c8 !important;
    font-weight: 400 !important;
    margin-top: 6px !important;
    text-align: right !important;
}

/* --- Submit Button --- */
body .contact-form__body .gform_wrapper .gform-footer,
body .contact-form__body .gform_wrapper .gform_footer {
    margin-top: 8px !important;
    padding: 0 !important;
}

body .contact-form__body .gform_wrapper .gform_button,
body .contact-form__body .gform_wrapper input[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 32px !important;
    font-family: var(--font-display) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #4e8cd0 0%, #004480 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all .3s cubic-bezier(.4, 0, .2, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 68, 128, .2),
                0 1px 3px rgba(0, 68, 128, .1) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.2 !important;
    height: auto !important;
}

body .contact-form__body .gform_wrapper .gform_button:hover,
body .contact-form__body .gform_wrapper input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 68, 128, .3),
                0 2px 6px rgba(0, 68, 128, .15) !important;
    background: linear-gradient(135deg, #2b87d1 0%, #00315e 100%) !important;
}

body .contact-form__body .gform_wrapper .gform_button:active,
body .contact-form__body .gform_wrapper input[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 68, 128, .2) !important;
}

/* --- Validation --- */
body .contact-form__body .gform_wrapper .gfield_error input,
body .contact-form__body .gform_wrapper .gfield_error textarea,
body .contact-form__body .gform_wrapper .gfield_error select {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, .08) !important;
}

body .contact-form__body .gform_wrapper .gfield_error .gfield_label,
body .contact-form__body .gform_wrapper .gfield_error .gform-field-label {
    color: #e53e3e !important;
}

body .contact-form__body .gform_wrapper .validation_message {
    font-size: 12px !important;
    color: #e53e3e !important;
    font-weight: 500 !important;
    margin-top: 6px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

body .contact-form__body .gform_wrapper .gform_validation_errors {
    background: #fff5f5 !important;
    border: 1.5px solid #fed7d7 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

/* --- Confirmation --- */
body .contact-form__card .gform_confirmation_message {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: #2d3748;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
}

/* --- Spinner --- */
body .contact-form__body .gform_ajax_spinner {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-left: 10px !important;
    border: 2.5px solid rgba(255, 255, 255, .3) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: gf-spin .6s linear infinite !important;
    background: none !important;
}

@keyframes gf-spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   MAP
   ========================================================================== */

.section--flush {
    padding: 0;
}

.contact-map {
    position: relative;
    width: 100%;
    background: var(--gray-100);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}


/* ==========================================================================
   CONTACT RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-form__card { position: static; }
    .contact-form__header { padding: 24px 20px 16px; }
    .contact-form__body { padding: 20px 20px 24px; }
    .contact-map iframe { height: 300px; }
}

@media (max-width: 640px) {
    body .contact-form__body .gform_wrapper .ginput_container--name,
    body .contact-form__body .gform_wrapper .ginput_container_name,
    body .contact-form__body .gform_wrapper .gform-grid-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body .contact-form__body .gform_wrapper input[type="text"],
    body .contact-form__body .gform_wrapper input[type="email"],
    body .contact-form__body .gform_wrapper input[type="tel"],
    body .contact-form__body .gform_wrapper textarea,
    body .contact-form__body .gform_wrapper select {
        padding: 12px 14px !important;
        font-size: 16px !important; /* voorkomt zoom op iOS */
    }

    body .contact-form__body .gform_wrapper .gform_button,
    body .contact-form__body .gform_wrapper input[type="submit"] {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }
}
