/* ===========================================================
   FFF TRUE PRICE - V9.5.5
   
   Native input + dropdown voor alle platforms
   - Icons via CSS background-image (data URI)
   - GF standaard euro formatting
   =========================================================== */

:root {
    --fff-height: 72px;
    --fff-radius: 12px;
    --fff-border: #E5E7EB;
    --fff-primary: #0095B6;
    --fff-text: #004258;
    --fff-muted: #6B7280;
    --fff-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --fff-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* ===========================================
   0. iOS NATIVE INPUT STYLING
   Matcht de Google autocomplete styling
   Specifieke selectors om GF framework te overschrijven
   =========================================== */
.fff-origin-field .fff-ios-input-wrapper,
.fff-destination-field .fff-ios-input-wrapper,
.fff-ios-input-wrapper {
    position: relative !important;
    width: 100% !important;
}

/* Extra specifieke selectors voor Gravity Forms Theme Framework */
.gform-theme--framework .fff-ios-native-input,
.gform_wrapper .fff-ios-native-input,
.fff-origin-field .fff-ios-native-input,
.fff-destination-field .fff-ios-native-input,
.fff-ios-native-input,
input.fff-ios-native-input,
input[type="text"].fff-ios-native-input {
    display: block !important;
    width: 100% !important;
    height: var(--fff-height) !important;
    padding: 0 20px !important;
    font-size: 22px !important;
    font-family: inherit !important;
    color: var(--fff-text) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid var(--fff-border) !important;
    border-radius: var(--fff-radius) !important;
    box-shadow: var(--fff-shadow) !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important;
    margin: 0 !important;
    line-height: normal !important;
}

.gform-theme--framework .fff-ios-native-input:hover,
.gform_wrapper .fff-ios-native-input:hover,
.fff-origin-field .fff-ios-native-input:hover,
.fff-destination-field .fff-ios-native-input:hover,
.fff-ios-native-input:hover,
input.fff-ios-native-input:hover {
    border-color: var(--fff-primary) !important;
    box-shadow: var(--fff-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

.gform-theme--framework .fff-ios-native-input:focus,
.gform_wrapper .fff-ios-native-input:focus,
.fff-origin-field .fff-ios-native-input:focus,
.fff-destination-field .fff-ios-native-input:focus,
.fff-ios-native-input:focus,
input.fff-ios-native-input:focus {
    border-color: var(--fff-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 149, 182, 0.12) !important;
    transform: translateY(-2px) !important;
}

.fff-ios-native-input::placeholder,
input.fff-ios-native-input::placeholder {
    color: var(--fff-muted) !important;
}

/* iOS/Desktop Dropdown styling */
.fff-ios-dropdown {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 8px !important;
    background: #ffffff !important;
    border: 1px solid var(--fff-border) !important;
    border-radius: var(--fff-radius) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.fff-ios-dropdown.open {
    display: block !important;
}

/* Dropdown items */
.fff-ios-dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    cursor: pointer !important;
    background: #fff !important;
    transition: background 0.15s ease !important;
}

.fff-ios-dropdown-item:last-child {
    border-bottom: none !important;
}

.fff-ios-dropdown-item:hover {
    background: #f0f9ff !important;
}

.fff-ios-dropdown-item:active {
    background: #e0f2fe !important;
}

/* Icon container */
.fff-ios-dropdown-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin-right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f0f9ff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

/* City icon - building */
.fff-ios-dropdown-icon.fff-icon-city {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230095B6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16'/%3E%3Cpath d='M9 8h1'/%3E%3Cpath d='M9 12h1'/%3E%3Cpath d='M9 16h1'/%3E%3Cpath d='M14 8h1'/%3E%3Cpath d='M14 12h1'/%3E%3Cpath d='M14 16h1'/%3E%3C/svg%3E") !important;
}

/* Airport icon - airplane */
.fff-ios-dropdown-icon.fff-icon-airport {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230095B6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") !important;
}

/* SVG icons - fallback indien inline SVG wordt gebruikt */
.fff-ios-dropdown-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    stroke: #0095B6 !important;
    fill: none !important;
}

/* Text content */
.fff-ios-dropdown-text {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.fff-ios-dropdown-main {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #004258 !important;
    line-height: 1.3 !important;
}

.fff-ios-dropdown-sub {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Empty state */
.fff-ios-dropdown-empty {
    padding: 20px !important;
    text-align: center !important;
    color: #6B7280 !important;
    font-size: 14px !important;
    background: #fff !important;
}

/* Loading spinner */
.fff-ios-dropdown-loading {
    padding: 20px !important;
    text-align: center !important;
    background: #fff !important;
}

.fff-ios-dropdown-loading::after {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #E5E7EB !important;
    border-top-color: #0095B6 !important;
    border-radius: 50% !important;
    animation: fff-spin 0.6s linear infinite !important;
}

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

/* ===========================================
   1. VERBERG ORIGINELE GF INPUTS
   (Alleen origin/destination - persons is nu zichtbaar)
   =========================================== */
.fff-origin-field > .ginput_container > input[type="text"],
.fff-destination-field > .ginput_container > input[type="text"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0,0,0,0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===========================================
   2. GOOGLE PLACES AUTOCOMPLETE
   =========================================== */
.fff-origin-field gmp-place-autocomplete,
.fff-destination-field gmp-place-autocomplete,
gmp-place-autocomplete.fff-place-autocomplete {
    --gmpx-font-size-base: 22px;
    --gmpx-font-family-base: inherit;
    --gmpx-color-surface: #ffffff;
    --gmpx-color-on-surface: #004258;
    --gmpx-color-on-surface-variant: #6B7280;
    --gmpx-color-primary: #0095B6;
    
    display: block !important;
    width: 100% !important;
    height: var(--fff-height) !important;
    background: #fff !important;
    border: 1px solid var(--fff-border) !important;
    border-radius: var(--fff-radius) !important;
    box-shadow: var(--fff-shadow) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important;
    font-size: 22px !important;
    font-family: inherit !important;
}

.fff-origin-field gmp-place-autocomplete:hover,
.fff-destination-field gmp-place-autocomplete:hover {
    border-color: var(--fff-primary) !important;
    box-shadow: var(--fff-shadow-hover) !important;
    transform: translateY(-2px);
}

.fff-origin-field gmp-place-autocomplete:focus-within,
.fff-destination-field gmp-place-autocomplete:focus-within {
    border-color: var(--fff-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 149, 182, 0.12) !important;
    transform: translateY(-2px);
}

.fff-origin-field .ginput_container,
.fff-destination-field .ginput_container {
    position: relative;
    z-index: 10;
}

.fff-origin-field:focus-within,
.fff-destination-field:focus-within {
    z-index: 100;
}

/* ===========================================
   3. PERSONEN VELD (Number Input)
   
   Standaard Gravity Forms number input met mooie styling.
   Op mobiel opent dit het numerieke toetsenbord.
   =========================================== */
.fff-persons-field .ginput_container {
    max-width: 200px;
    margin: 0 auto;
}

.fff-persons-field input[type="number"] {
    width: 100% !important;
    height: var(--fff-height) !important;
    padding: 12px 20px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--fff-text) !important;
    text-align: center !important;
    background: #fff !important;
    border: 1px solid var(--fff-border) !important;
    border-radius: var(--fff-radius) !important;
    box-shadow: var(--fff-shadow) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    -moz-appearance: textfield !important; /* Firefox: verberg spinner */
}

/* Verberg spinner buttons op desktop voor cleaner look */
.fff-persons-field input[type="number"]::-webkit-outer-spin-button,
.fff-persons-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Hover state */
.fff-persons-field input[type="number"]:hover {
    border-color: var(--fff-primary) !important;
    box-shadow: var(--fff-shadow-hover) !important;
}

/* Focus state */
.fff-persons-field input[type="number"]:focus {
    border-color: var(--fff-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 149, 182, 0.12) !important;
}

/* Placeholder */
.fff-persons-field input[type="number"]::placeholder {
    color: var(--fff-muted) !important;
    font-weight: 400 !important;
}

/* Validation error */
.fff-persons-field.gfield_error input[type="number"] {
    border-color: #ef4444 !important;
}

/* Label styling */
.fff-persons-field .gfield_label {
    display: block !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: var(--fff-text) !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}

.fff-persons-field .gfield_description {
    font-size: 14px;
    color: var(--fff-muted);
    margin-bottom: 12px;
    text-align: center;
}

/* Mobiel: iets kleiner */
@media (max-width: 480px) {
    .fff-persons-field input[type="number"] {
        height: 60px !important;
        font-size: 22px !important;
        padding: 10px 16px !important;
    }
    
    .fff-persons-field .gfield_label {
        font-size: 20px !important;
    }
}

/* ===========================================
   4. VLUCHTGEGEVENS (INFO WRAPPER)
   =========================================== */
.fff-info-wrapper {
    margin-top: 24px;
    margin-bottom: 20px;
}

.fff-info-wrapper .fff-info-header {
    background: #FCFBF2;
    padding: 24px 32px;
    border: 1px solid var(--fff-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

.fff-info-wrapper .fff-icon-wrapper {
    background: rgba(0, 149, 182, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.fff-info-wrapper .fff-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--fff-primary);
}

.fff-info-wrapper .fff-info-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fff-text);
    line-height: 1.2;
    margin: 0;
}

.fff-info-wrapper .fff-info-header p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--fff-muted);
    font-weight: 400;
}

.fff-info-wrapper .fff-info-container {
    background: #fff;
    padding: 32px;
    border: 1px solid var(--fff-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fff-info-wrapper .fff-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.fff-info-wrapper .fff-info-card {
    background: #FCFBF2;
    padding: 16px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fff-info-wrapper .fff-label {
    display: block;
    font-size: 14px;
    color: var(--fff-muted);
    font-weight: 400;
    line-height: 1.4;
}

.fff-info-wrapper .fff-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--fff-text);
    line-height: 1.3;
    word-break: break-word;
}

/* ===========================================
   5. VERBORGEN KOSTEN (COSTS WRAPPER)
   =========================================== */
.fff-costs-wrapper {
    margin-bottom: 20px;
}

.fff-costs-wrapper .fff-costs-outer {
    background: #FCFBF2;
    margin-top: 24px;
    padding: 32px 0;
    border-left: 4px solid #e67e22;
}

.fff-costs-wrapper .fff-costs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 32px;
}

.fff-costs-wrapper .fff-header-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--fff-text);
    margin: 0;
}

.fff-costs-wrapper .fff-header-title svg {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: #e67e22;
}

.fff-costs-wrapper .fff-badge {
    background: rgba(230, 126, 34, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
}

.fff-costs-wrapper .fff-badge span {
    font-size: 14px;
    font-weight: 500;
    color: #e67e22;
}

.fff-costs-wrapper .fff-costs-content {
    background: #fff;
    padding: 24px;
    margin-left: 32px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.fff-costs-wrapper .fff-costs-list {
    display: flex;
    flex-direction: column;
}

.fff-costs-wrapper .fff-cost-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.fff-costs-wrapper .fff-cost-item:last-child {
    border-bottom: none;
}

.fff-costs-wrapper .fff-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.fff-costs-wrapper .fff-icon-circle svg {
    width: 24px;
    height: 24px;
}

.fff-costs-wrapper .fff-icon-climate {
    background: rgba(0, 149, 182, 0.1);
}

.fff-costs-wrapper .fff-icon-climate svg {
    color: var(--fff-primary);
}

.fff-costs-wrapper .fff-icon-air {
    background: rgba(74, 144, 114, 0.1);
}

.fff-costs-wrapper .fff-icon-air svg {
    color: #4A9072;
}

.fff-costs-wrapper .fff-cost-details {
    flex: 1;
    min-width: 0;
}

.fff-costs-wrapper .fff-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}

.fff-costs-wrapper .fff-cost-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--fff-text);
    flex: 1 1 auto;
    min-width: 0;
}

.fff-costs-wrapper .fff-cost-value {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

.fff-costs-wrapper .fff-climate-cost {
    color: var(--fff-primary);
}

.fff-costs-wrapper .fff-air-cost {
    color: #4A9072;
}

.fff-costs-wrapper .fff-cost-description {
    font-size: 14px;
    color: var(--fff-muted);
    margin-bottom: 12px;
}

.fff-costs-wrapper .fff-progress-bar {
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
}

.fff-costs-wrapper .fff-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.7s ease-out;
}

.fff-costs-wrapper .fff-climate-bar {
    background: var(--fff-primary);
}

.fff-costs-wrapper .fff-air-bar {
    background: #4A9072;
}

/* Total Section */
.fff-costs-wrapper .fff-costs-total {
    background: #FCFBF2;
    padding: 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: 32px;
}

.fff-costs-wrapper .fff-costs-total::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--fff-primary);
}

.fff-costs-wrapper .fff-total-left {
    flex: 1;
    padding: 24px 24px 24px 28px;
    display: flex;
    background: #fff;
    flex-direction: column;
    justify-content: center;
}

.fff-costs-wrapper .fff-total-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fff-costs-wrapper .fff-total-subtitle {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    margin: 0;
}

.fff-costs-wrapper .fff-total-right {
    background: var(--fff-primary);
    padding: 24px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    position: relative;
}

.fff-costs-wrapper .fff-total-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 30px 0 30px 20px;
    border-color: transparent transparent transparent #fff;
}

.fff-costs-wrapper .fff-total-value,
.fff-costs-wrapper .fff-hidden-total {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.fff-costs-wrapper .fff-total-per-person {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 0;
}

/* ===========================================
   6. PERCENTAGE CARDS
   =========================================== */
.percentage-cards {
    margin-bottom: 20px !important;
}

/* Override Gravity Forms Framework CSS */
.gform-theme--framework .percentage-cards .gform-field-label--type-inline {
    margin: 0 !important;
    padding: 0 !important;
}

/* Label/Title */
.percentage-cards legend.gfield_label {
    display: block !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: var(--fff-text) !important;
    margin-bottom: 8px !important;
}

.percentage-cards .gfield_description {
    font-size: 14px;
    color: var(--fff-muted);
    margin-bottom: 16px;
}

/* Grid Layout */
.percentage-cards .gfield_radio {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(80px, 1fr)) !important;
    gap: 16px !important;
}

/* Each Choice */
.percentage-cards .gchoice {
    margin: 0 !important;
    position: relative !important;
    grid-template-columns: auto !important;
}

/* Hide Radio Input */
.percentage-cards input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Card Label */
.percentage-cards label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 8px !important;
    min-height: 60px !important;
    background: white !important;
    border: 2px solid var(--fff-border) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Text styling */
.percentage-cards label,
.percentage-cards label .gform-field-label,
.percentage-cards label .gform-field-label--type-inline {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--fff-text) !important;
    line-height: 1 !important;
}

/* Hover State */
.percentage-cards label:hover {
    background: #F9FAFB !important;
    border-color: var(--fff-primary) !important;
}

/* Checked State */
.percentage-cards input[type="radio"]:checked + label {
    background: var(--fff-primary) !important;
    border-color: var(--fff-primary) !important;
    color: white !important;
}

/* Witte tekst voor checked state */
.percentage-cards input[type="radio"]:checked + label,
.percentage-cards input[type="radio"]:checked + label *,
.percentage-cards input[type="radio"]:checked + label .gform-field-label,
.percentage-cards input[type="radio"]:checked + label .gform-field-label--type-inline {
    color: white !important;
}

/* Focus State */
.percentage-cards input[type="radio"]:focus + label {
    outline: 2px solid rgba(0, 149, 182, 0.2) !important;
    outline-offset: 2px !important;
}

/* 5DE OPTIE - "Zelf bedrag kiezen" op aparte regel */
.percentage-cards .gchoice:nth-child(5),
.percentage-cards .gchoice:last-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 8px !important;
}

/* Label styling voor laatste optie - geen kaart, alleen tekst */
.percentage-cards .gchoice:nth-child(5) label,
.percentage-cards .gchoice:last-child label {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    padding: 8px 16px !important;
    height: auto !important;
    min-height: auto !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    transition: border-bottom-color 0.2s ease-in-out !important;
    border-radius: 0 !important;
}

/* Tekst styling voor laatste optie */
.percentage-cards .gchoice:nth-child(5) label,
.percentage-cards .gchoice:nth-child(5) label *,
.percentage-cards .gchoice:nth-child(5) label .gform-field-label,
.percentage-cards .gchoice:nth-child(5) label .gform-field-label--type-inline,
.percentage-cards .gchoice:last-child label,
.percentage-cards .gchoice:last-child label *,
.percentage-cards .gchoice:last-child label .gform-field-label,
.percentage-cards .gchoice:last-child label .gform-field-label--type-inline {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--fff-muted) !important;
    line-height: 1.4 !important;
}

/* Hover effect - alleen underline */
.percentage-cards .gchoice:nth-child(5) label:hover,
.percentage-cards .gchoice:last-child label:hover {
    background: transparent !important;
    border-bottom-color: var(--fff-primary) !important;
}

.percentage-cards .gchoice:nth-child(5) label:hover,
.percentage-cards .gchoice:nth-child(5) label:hover *,
.percentage-cards .gchoice:last-child label:hover,
.percentage-cards .gchoice:last-child label:hover * {
    color: var(--fff-text) !important;
    font-weight: 600 !important;
}

/* Checked state voor laatste optie - subtiel */
.percentage-cards .gchoice:nth-child(5) input[type="radio"]:checked + label,
.percentage-cards .gchoice:last-child input[type="radio"]:checked + label {
    background: transparent !important;
    border-bottom-color: var(--fff-primary) !important;
}

.percentage-cards .gchoice:nth-child(5) input[type="radio"]:checked + label,
.percentage-cards .gchoice:nth-child(5) input[type="radio"]:checked + label *,
.percentage-cards .gchoice:last-child input[type="radio"]:checked + label,
.percentage-cards .gchoice:last-child input[type="radio"]:checked + label * {
    color: var(--fff-primary) !important;
    font-weight: 600 !important;
}

/* Focus state */
.percentage-cards .gchoice:nth-child(5) input[type="radio"]:focus + label,
.percentage-cards .gchoice:last-child input[type="radio"]:focus + label {
    outline: 2px solid rgba(0, 149, 182, 0.3) !important;
    outline-offset: 4px !important;
}

/* ===========================================
   6B. CUSTOM AMOUNT FIELD (Eigen bedrag)
   =========================================== */
.fff-custom-amount-field {
    margin-top: 20px !important;
    padding: 24px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid var(--fff-border) !important;
    border-radius: var(--fff-radius) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Label */
.fff-custom-amount-field .gfield_label {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--fff-text) !important;
    margin-bottom: 12px !important;
}

/* Input wrapper */
.fff-custom-amount-field .ginput_container {
    position: relative !important;
    max-width: 280px !important;
}

/* Input field styling */
.fff-custom-amount-field input[type="number"],
.fff-custom-amount-field input[type="text"],
.fff-custom-amount-field input[type="tel"] {
    width: 100% !important;
    height: 60px !important;
    padding: 12px 16px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--fff-text) !important;
    background: white !important;
    border: 2px solid var(--fff-border) !important;
    border-radius: 8px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    -moz-appearance: textfield !important;
    text-align: left !important;
}

/* Remove spinner buttons */
.fff-custom-amount-field input[type="number"]::-webkit-outer-spin-button,
.fff-custom-amount-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Focus state */
.fff-custom-amount-field input[type="number"]:focus,
.fff-custom-amount-field input[type="text"]:focus,
.fff-custom-amount-field input[type="tel"]:focus {
    border-color: var(--fff-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 149, 182, 0.12) !important;
}

/* Hover state */
.fff-custom-amount-field input[type="number"]:hover,
.fff-custom-amount-field input[type="text"]:hover,
.fff-custom-amount-field input[type="tel"]:hover {
    border-color: #cbd5e1 !important;
}

/* Description/helper text */
.fff-custom-amount-field .gfield_description {
    margin-top: 8px !important;
    font-size: 13px !important;
    color: var(--fff-muted) !important;
}

/* Validation error state */
.fff-custom-amount-field.gfield_error input[type="number"],
.fff-custom-amount-field.gfield_error input[type="text"],
.fff-custom-amount-field.gfield_error input[type="tel"] {
    border-color: #ef4444 !important;
}

/* ===========================================
   7. RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .fff-info-wrapper .fff-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .fff-costs-wrapper .fff-costs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fff-costs-wrapper .fff-cost-name {
        font-size: 16px;
    }
    
    .fff-costs-wrapper .fff-cost-value {
        font-size: 18px;
    }
    
    .fff-costs-wrapper .fff-icon-circle {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .fff-costs-wrapper .fff-icon-circle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Percentage Cards Tablet */
    .percentage-cards .gfield_radio {
        grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
        gap: 12px !important;
    }
    
    /* Custom Amount Tablet */
    .fff-custom-amount-field {
        padding: 20px !important;
    }
    
    .fff-custom-amount-field .ginput_container {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    :root {
        --fff-height: 60px;
    }
    
    .fff-origin-field gmp-place-autocomplete,
    .fff-destination-field gmp-place-autocomplete {
        --gmpx-font-size-base: 18px;
    }
    
    /* iOS Native Input Mobile */
    .fff-ios-native-input,
    input.fff-ios-native-input {
        font-size: 18px !important;
        height: 60px !important;
    }
    
    /* Info Wrapper Mobile */
    .fff-info-wrapper .fff-info-header {
        padding: 16px;
    }
    
    .fff-info-wrapper .fff-info-container {
        padding: 16px;
    }
    
    /* Costs Wrapper Mobile */
    .fff-costs-wrapper .fff-costs-header {
        padding: 0 16px;
    }
    
    .fff-costs-wrapper .fff-costs-content {
        margin-left: 16px;
        padding: 16px;
    }
    
    .fff-costs-wrapper .fff-cost-item {
        padding: 10px 8px;
    }
    
    .fff-costs-wrapper .fff-cost-name {
        font-size: 14px;
    }
    
    .fff-costs-wrapper .fff-cost-value {
        font-size: 15px;
    }
    
    .fff-costs-wrapper .fff-icon-circle {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .fff-costs-wrapper .fff-icon-circle svg {
        width: 18px;
        height: 18px;
    }
    
    /* Costs Total Mobile - Stack */
    .fff-costs-wrapper .fff-costs-total {
        flex-direction: column;
        margin-left: 16px;
    }
    
    .fff-costs-wrapper .fff-costs-total::before {
        width: 100%;
        height: 4px;
        bottom: auto;
    }
    
    .fff-costs-wrapper .fff-total-left {
        padding: 20px;
        text-align: center;
    }
    
    .fff-costs-wrapper .fff-total-right {
        min-width: auto;
        padding: 24px;
    }
    
    .fff-costs-wrapper .fff-total-right::before {
        display: none;
    }
    
    .fff-costs-wrapper .fff-total-value,
    .fff-costs-wrapper .fff-hidden-total {
        font-size: 28px;
    }
    
    /* Percentage Cards Mobile */
    .percentage-cards .gfield_radio {
        grid-template-columns: repeat(2, minmax(100px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .percentage-cards label {
        padding: 14px 6px !important;
        min-height: 55px !important;
    }
    
    .percentage-cards label,
    .percentage-cards label .gform-field-label,
    .percentage-cards label .gform-field-label--type-inline {
        font-size: 22px !important;
    }
    
    .percentage-cards .gchoice:nth-child(5) label,
    .percentage-cards .gchoice:last-child label {
        font-size: 15px !important;
        padding: 6px 12px !important;
    }
    
    /* Custom Amount Mobile */
    .fff-custom-amount-field {
        padding: 16px !important;
        margin-top: 16px !important;
    }
    
    .fff-custom-amount-field input[type="number"],
    .fff-custom-amount-field input[type="text"],
    .fff-custom-amount-field input[type="tel"] {
        height: 52px !important;
        font-size: 24px !important;
        padding: 12px 16px !important;
    }
}

/* ===========================================
   6C. E-MAIL VELD
   =========================================== */
.fff-email-field {
    margin-bottom: 20px !important;
}

.fff-email-field .gfield_label {
    display: block !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: var(--fff-text) !important;
    margin-bottom: 8px !important;
}

.fff-email-field .gfield_description {
    font-size: 14px;
    color: var(--fff-muted);
    margin-bottom: 12px;
}

.fff-email-field .ginput_container {
    position: relative !important;
}

.fff-email-field input[type="email"],
.fff-email-field input[type="text"] {
    width: 100% !important;
    height: var(--fff-height) !important;
    padding: 12px 20px !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--fff-text) !important;
    background: white !important;
    border: 1px solid var(--fff-border) !important;
    border-radius: var(--fff-radius) !important;
    box-shadow: var(--fff-shadow) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.fff-email-field input[type="email"]:hover,
.fff-email-field input[type="text"]:hover {
    border-color: var(--fff-primary) !important;
    box-shadow: var(--fff-shadow-hover) !important;
    transform: translateY(-2px);
}

.fff-email-field input[type="email"]:focus,
.fff-email-field input[type="text"]:focus {
    border-color: var(--fff-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 149, 182, 0.12) !important;
    transform: translateY(-2px);
}

.fff-email-field input::placeholder {
    color: var(--fff-muted) !important;
    font-weight: 400 !important;
}

/* Validation error */
.fff-email-field.gfield_error input[type="email"],
.fff-email-field.gfield_error input[type="text"] {
    border-color: #ef4444 !important;
}

/* ===========================================
   6D. TOTAAL TE BETALEN (Product veld)
   
   HTML structuur:
   .fff-product-field
     .gfield_label (verbergen - bevat "Productnaam")
     .ginput_container_singleproduct
       input[hidden] (product naam)
       .ginput_product_price_wrapper
         .ginput_product_price_label (stylen als "Totaal te betalen")
         input.ginput_product_price (readonly prijs display)
       input[hidden] (quantity)
   =========================================== */
.fff-product-field {
    margin: 30px 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Verberg product naam label bovenaan */
.fff-product-field > .gfield_label {
    display: none !important;
}

/* Product container met gradient */
.fff-product-field .ginput_container {
    background: linear-gradient(135deg, var(--fff-primary) 0%, #007a94 100%) !important;
    border-radius: var(--fff-radius) !important;
    padding: 24px 28px !important;
    box-shadow: 0 8px 24px rgba(0, 149, 182, 0.25) !important;
}

/* Prijs wrapper centreren */
.fff-product-field .ginput_product_price_wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* "Prijs:" label vervangen door "Totaal te betalen" */
.fff-product-field .ginput_product_price_label {
    font-size: 0 !important; /* Verberg originele tekst */
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.fff-product-field .ginput_product_price_label::before {
    content: "Totaal te betalen" !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* Prijs input als groot bedrag */
.fff-product-field input.ginput_product_price {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: white !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    width: auto !important;
    min-width: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default !important;
    line-height: 1.2 !important;
}

/* Focus state verwijderen (is readonly) */
.fff-product-field input.ginput_product_price:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Verberg hidden inputs */
.fff-product-field input[type="hidden"] {
    display: none !important;
}

/* ===========================================
   6E. VERZENDEN KNOP
   =========================================== */
.gform_footer,
.gform_page_footer {
    margin-top: 30px !important;
    padding-top: 20px !important;
}

.gform_button.button,
.gform_submit_button,
input[type="submit"].gform_button,
button.gform_button {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 18px 32px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: white !important;
    background: linear-gradient(135deg, var(--fff-primary) 0%, #007a94 100%) !important;
    border: none !important;
    border-radius: var(--fff-radius) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 149, 182, 0.3) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.gform_button.button:hover,
.gform_submit_button:hover,
input[type="submit"].gform_button:hover,
button.gform_button:hover {
    background: linear-gradient(135deg, #007a94 0%, #006578 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 149, 182, 0.4) !important;
    transform: translateY(-2px) !important;
}

.gform_button.button:active,
.gform_submit_button:active,
input[type="submit"].gform_button:active,
button.gform_button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 149, 182, 0.3) !important;
}

.gform_button.button:focus,
.gform_submit_button:focus,
input[type="submit"].gform_button:focus,
button.gform_button:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 149, 182, 0.3), 0 4px 12px rgba(0, 149, 182, 0.3) !important;
}

/* Loading state */
.gform_button.button[disabled],
.gform_submit_button[disabled] {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

@media (max-width: 380px) {
    .fff-costs-wrapper .fff-cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .fff-costs-wrapper .fff-icon-circle {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .fff-costs-wrapper .fff-icon-circle svg {
        width: 16px;
        height: 16px;
    }
}

/* ===========================================
   8. RESPONSIVE AANVULLINGEN
   =========================================== */
@media (max-width: 768px) {
    /* Email veld */
    .fff-email-field input[type="email"],
    .fff-email-field input[type="text"] {
        font-size: 18px !important;
        height: 60px !important;
    }
    
    /* Product veld */
    .fff-product-field .ginput_container {
        padding: 20px !important;
    }
    
    .fff-product-field input.ginput_product_price {
        font-size: 36px !important;
    }
    
    /* Submit button */
    .gform_button.button,
    .gform_submit_button {
        font-size: 18px !important;
        padding: 16px 28px !important;
    }
}

@media (max-width: 480px) {
    /* Email veld */
    .fff-email-field .gfield_label {
        font-size: 20px !important;
    }
    
    .fff-email-field input[type="email"],
    .fff-email-field input[type="text"] {
        font-size: 16px !important;
        height: 52px !important;
        padding: 10px 16px !important;
    }
    
    /* Product veld */
    .fff-product-field .ginput_container {
        padding: 16px !important;
    }
    
    .fff-product-field .ginput_product_price_label::before {
        font-size: 14px !important;
    }
    
    .fff-product-field input.ginput_product_price {
        font-size: 32px !important;
    }
    
    /* Submit button */
    .gform_button.button,
    .gform_submit_button {
        font-size: 16px !important;
        padding: 14px 24px !important;
        max-width: 100% !important;
    }
}