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


/* ==========================================================================
   HERO — Centered, conversion-focused
   ========================================================================== */
.offerte-hero {
    background: linear-gradient(165deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-mid) 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offerte-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 140, 208, .12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.offerte-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(43, 135, 209, .08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.offerte-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.offerte-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(78, 140, 208, .15);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 40px;
    border: 1px solid rgba(78, 140, 208, .25);
    margin-bottom: 28px;
}

.offerte-hero__badge svg {
    width: 14px;
    height: 14px;
}

.offerte-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 20px;
}

.offerte-hero p {
    color: rgba(255, 255, 255, .7);
    font-size: 17px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

.offerte-hero__scroll {
    margin-top: 40px;
}

.offerte-hero__scroll a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .4);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    transition: color .3s ease;
}

.offerte-hero__scroll a:hover {
    color: rgba(255, 255, 255, .7);
}

.offerte-hero__scroll svg {
    width: 20px;
    height: 20px;
    animation: offerte-bounce 2s ease infinite;
}

@keyframes offerte-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}


/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.offerte-trust {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 0;
}

.offerte-trust__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.offerte-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-600);
}

.offerte-trust__item svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    flex-shrink: 0;
}


/* ==========================================================================
   FORM LAYOUT — 2 columns: form + sidebar
   ========================================================================== */
.offerte-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}


/* ==========================================================================
   FORM CARD — Premium
   ========================================================================== */
.offerte-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;
    transition: box-shadow .3s ease;
}

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

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

.offerte-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;
}

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

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

.offerte-form__body {
    padding: 24px 36px 36px;
}

.offerte-form__fallback {
    padding: 40px 32px;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.offerte-form__fallback-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    border-radius: 50%;
    margin: 0 auto 16px;
}

.offerte-form__fallback-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.offerte-form__fallback p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.offerte-form__fallback p + p {
    margin-top: 8px;
}

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


/* ==========================================================================
   SIDEBAR — Beloften
   ========================================================================== */
.offerte-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offerte-promises {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.offerte-promises h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.offerte-promises__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offerte-promise {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

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

.offerte-promise__icon svg {
    width: 17px;
    height: 17px;
    color: var(--blue);
}

.offerte-promise strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 3px;
    line-height: 1.3;
}

.offerte-promise p {
    font-size: 12.5px;
    color: var(--gray-400);
    line-height: 1.5;
    margin: 0;
}

/* Quick Contact Card */
.offerte-quick-contact {
    background: linear-gradient(165deg, var(--blue-dark) 0%, var(--blue) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.offerte-quick-contact__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.offerte-quick-contact__header svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.offerte-quick-contact__header strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.offerte-quick-contact__body {
    padding: 20px 24px;
    text-align: center;
}

.offerte-phone-link {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    text-decoration: none;
    margin-bottom: 4px;
    transition: opacity .2s;
}

.offerte-phone-link:hover {
    opacity: .85;
    color: var(--white) !important;
}

.offerte-quick-contact__body span {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    font-weight: 500;
}


/* ==========================================================================
   USPs GRID
   ========================================================================== */
.offerte-usps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.offerte-usp {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all .3s ease;
}

.offerte-usp:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
    transform: translateY(-2px);
}

.offerte-usp__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    border-radius: 12px;
    margin-bottom: 16px;
}

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

.offerte-usp strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.offerte-usp p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   TIMELINE — Werkwijze
   ========================================================================== */
.offerte-timeline {
    max-width: 720px;
    margin: 48px auto 0;
    position: relative;
    padding-left: 36px;
}

/* Vertical line */
.offerte-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 15px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--blue), var(--blue-deep));
    border-radius: 2px;
}

.offerte-timeline__step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 36px;
    position: relative;
}

.offerte-timeline__step:last-child {
    padding-bottom: 0;
}

.offerte-timeline__marker {
    position: absolute;
    left: -36px;
    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: 13px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 68, 128, .2);
    z-index: 1;
}

.offerte-timeline__content {
    flex: 1;
    padding-top: 4px;
}

.offerte-timeline__content strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.offerte-timeline__content p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0;
}


/* ==========================================================================
   FAQ — Centered, max-width
   ========================================================================== */
.offerte-faq {
    max-width: 760px;
    margin: 0 auto;
}


/* ==========================================================================
   GRAVITY FORMS OVERRIDES — Same approach as contact page
   ========================================================================== */

body .offerte-form__body .gform_wrapper.gform-theme--orbital,
body .offerte-form__body .gform_wrapper[data-form-theme="orbital"],
body .offerte-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-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;
}

body .offerte-form__body .gform_wrapper {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-body) !important;
}

body .offerte-form__body .gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

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

body .offerte-form__body .gform_validation_container,
body .offerte-form__body .gfield--type-honeypot {
    display: none !important;
}

/* Labels */
body .offerte-form__body .gform_wrapper .gfield_label,
body .offerte-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;
}

body .offerte-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;
}

body .offerte-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;
}

body .offerte-form__body .gform_wrapper .gfield_required_text {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #8d99ae !important;
}

body .offerte-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 .offerte-form__body .gform_wrapper .ginput_container--name,
body .offerte-form__body .gform_wrapper .ginput_container_name,
body .offerte-form__body .gform_wrapper .gform-grid-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
}

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

body .offerte-form__body .gform_wrapper fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* All inputs */
body .offerte-form__body .gform_wrapper input[type="text"],
body .offerte-form__body .gform_wrapper input[type="email"],
body .offerte-form__body .gform_wrapper input[type="tel"],
body .offerte-form__body .gform_wrapper input[type="url"],
body .offerte-form__body .gform_wrapper input[type="number"],
body .offerte-form__body .gform_wrapper textarea,
body .offerte-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;
}

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

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

body .offerte-form__body .gform_wrapper input[type="text"]:focus,
body .offerte-form__body .gform_wrapper input[type="email"]:focus,
body .offerte-form__body .gform_wrapper input[type="tel"]:focus,
body .offerte-form__body .gform_wrapper input[type="url"]:focus,
body .offerte-form__body .gform_wrapper textarea:focus,
body .offerte-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 */
body .offerte-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 .offerte-form__body .gform_wrapper textarea {
    min-height: 140px !important;
    resize: vertical !important;
    line-height: 1.65 !important;
}

/* Checkboxes (diensten selectie) */
body .offerte-form__body .gform_wrapper .gfield--type-checkbox .gchoice,
body .offerte-form__body .gform_wrapper .gfield_checkbox li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: var(--gray-50) !important;
    border: 1.5px solid var(--gray-100) !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
    transition: all .2s ease !important;
    cursor: pointer !important;
}

body .offerte-form__body .gform_wrapper .gfield--type-checkbox .gchoice:hover,
body .offerte-form__body .gform_wrapper .gfield_checkbox li:hover {
    border-color: var(--accent) !important;
    background: rgba(78, 140, 208, .04) !important;
}

body .offerte-form__body .gform_wrapper .gfield--type-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    accent-color: #4e8cd0 !important;
}

body .offerte-form__body .gform_wrapper .gfield--type-checkbox label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
    cursor: pointer !important;
}

/* File upload */
body .offerte-form__body .gform_wrapper .gform_drop_area {
    border: 2px dashed var(--gray-200) !important;
    border-radius: 12px !important;
    padding: 28px !important;
    text-align: center !important;
    background: var(--gray-50) !important;
    transition: all .2s ease !important;
}

body .offerte-form__body .gform_wrapper .gform_drop_area:hover {
    border-color: var(--accent) !important;
    background: rgba(78, 140, 208, .04) !important;
}

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

body .offerte-form__body .gform_wrapper .gform_button,
body .offerte-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: 18px 32px !important;
    font-family: var(--font-display) !important;
    font-size: 16px !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 .offerte-form__body .gform_wrapper .gform_button:hover,
body .offerte-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 .offerte-form__body .gform_wrapper .gform_button:active,
body .offerte-form__body .gform_wrapper input[type="submit"]:active {
    transform: translateY(0) !important;
}

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

body .offerte-form__body .gform_wrapper .gfield_error .gfield_label {
    color: #e53e3e !important;
}

body .offerte-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 .offerte-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 .offerte-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: 28px;
    text-align: center;
}

/* Spinner */
body .offerte-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: offerte-spin .6s linear infinite !important;
    background: none !important;
}

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


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .offerte-layout { grid-template-columns: 1fr 320px; gap: 32px; }
    .offerte-usps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .offerte-hero { padding: 130px 0 60px; }
    .offerte-layout { grid-template-columns: 1fr; }
    .offerte-sidebar { position: static; }
    .offerte-form__header { padding: 24px 24px 16px; }
    .offerte-form__body { padding: 20px 24px 28px; }
    .offerte-usps { grid-template-columns: 1fr; }
    .offerte-trust__grid { gap: 16px; justify-content: flex-start; }
    .offerte-timeline { padding-left: 32px; }
    .offerte-timeline::before { left: 11px; }
    .offerte-timeline__marker { left: -32px; width: 28px; height: 28px; font-size: 12px; }
}

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

    body .offerte-form__body .gform_wrapper input[type="text"],
    body .offerte-form__body .gform_wrapper input[type="email"],
    body .offerte-form__body .gform_wrapper input[type="tel"],
    body .offerte-form__body .gform_wrapper textarea,
    body .offerte-form__body .gform_wrapper select {
        font-size: 16px !important;
    }

    .offerte-trust__grid { flex-direction: column; gap: 10px; }
}
