/* Wrapper for the entire form */
.custom-form-wrapper {
    width: 800px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', Arial, sans-serif;
    /* match pago */
    margin: 30px auto;
    /* centres the form */
}

/* Title and subtitle */
.form-title {
    color: #00234A;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

/* Highlight box */
.highlight-box {
    background: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.highlight-box a.highlight-btn {
    display: inline-block;
    background: #d17f00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.highlight-box a.highlight-btn:hover {
    background: #b86d00;
}

/* Two-column layout for paired fields */
.two-columns {
    display: flex;
    gap: 24px;
    margin: 0 auto 20px;
    /* center the row block */
    flex-wrap: wrap;
    /* responsive stacking */
    justify-content: center;
    /* center items in the row */
    max-width: 1200px;
    /* wider rows */
    width: 100%;
}

.two-columns label {
    flex: 1 1 480px;
    /* was 360px: wider columns */
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    max-width: 600px;
    /* was 480px */
}

/* Inputs and selects (exclude checkboxes and radios) */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {

    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Reset/appearance for checkboxes so they sit inline with text */
input[type="checkbox"] {
    min-width: 13px;
    width: auto;
    padding: 0;
    margin: 0 8px 0 0;
    /* space before the text */
    vertical-align: middle;
    accent-color: #4b59fa;
    /* theme color */
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: #4b59fa;
    outline: none;
}

/* Submit button */
.wpcf7-submit {
    background: #4b59fa;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.wpcf7-submit:hover {
    background: #3a47d6;
}

/* Slider styles */
.slider-group {
    margin: 0 -12px;
    /* compensate for padding in .two-columns */
}

.slider-group input[type="range"] {
    width: 100% !important;
    display: block;
    margin: 6px 0 18px;
    background: transparent;
    /* remove default grey */
    -webkit-appearance: none;
    appearance: none;
    border: none !important
}

/* WebKit (Chrome, Edge, Safari) track */
.slider-group input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #f3af4a;
    /* solid color so no grey remainder */
    border-radius: 4px;
}

/* WebKit thumb */
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #d17f00;
    border: 2px solid #fff;
    /* contrast ring */
    box-shadow: 0 0 0 2px #d17f00;
    /* outline effect */
    margin-top: -5px;
    /* vertically center on track */
    cursor: pointer;
}

/* Firefox track */
.slider-group input[type="range"]::-moz-range-track {
    height: 8px;
    background: #d17f00;
    border-radius: 4px;
}

/* Firefox thumb */
.slider-group input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #d17f00;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #d17f00;
    cursor: pointer;
}

/* Hide focus outline but keep accessibility via box-shadow */
.slider-group input[type="range"]:focus {
    outline: none;
}

/* Slider value display styles */
.slider-group .slider-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
    font-size: 15px;
    font-family: inherit;
    position: relative;
    min-height: 28px;
}

.slider-group .slider-min,
.slider-group .slider-max {
    color: #888;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.slider-group .slider-current {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #b86d00;
    font-weight: bold;
    background: #fff8e1;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3af4a;
    pointer-events: none;
}

/* Responsive: make sure values don't overlap on small screens */
@media (max-width: 600px) {
    .slider-group .slider-values {
        font-size: 14px;
        min-height: 24px;
    }

    .slider-group .slider-current {
        font-size: 15px;
        padding: 0 7px;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .two-columns {
        flex-direction: column;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .custom-form-wrapper--pago .two-columns {
        flex-direction: column;
        max-width: 100%;
    }
}

/* ===== Paid plan overrides (orange theme) ===== */
.custom-form-wrapper--pago {
    width: 800px !important;
    max-width: 800px !important;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0d98c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', Arial, sans-serif;
    /* was 700px */
    margin: 30px auto;
}

.custom-form-wrapper--pago .form-title {
    color: #b86d00;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.custom-form-wrapper--pago .form-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.custom-form-wrapper--pago .highlight-box {
    background: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.custom-form-wrapper--pago .highlight-box a.highlight-btn {
    display: inline-block;
    background: #d17f00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.custom-form-wrapper--pago .highlight-box a.highlight-btn:hover {
    background: #b86d00;
}

.custom-form-wrapper--pago .two-columns {
    display: flex;
    gap: 24px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.custom-form-wrapper--pago .two-columns label {
    flex: 1 1 480px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    max-width: 600px;
}

/* Exclude checkboxes/radios from text-input styling in orange theme */
.custom-form-wrapper--pago input:not([type="checkbox"]):not([type="radio"]),
.custom-form-wrapper--pago select,
.custom-form-wrapper--pago textarea {
    width: 388px !important;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Checkbox styling for orange theme */
.custom-form-wrapper--pago input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0 8px 0 0;
    vertical-align: middle;
    accent-color: #faa24b;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: none !important;
}

/* Disclaimer text */
.disclaimer {
    font-size: 12px;
    /* smaller than body text */
    line-height: 1.5;
    margin-top: 10px;
    text-align: center;
    /* center the text */
}

/* Ensure same size inside the orange theme wrapper */
.custom-form-wrapper--pago .disclaimer {
    font-size: 12px;
    text-align: center;
    /* center the text */
}

/* Hide auto-inserted <br> after labels (CF7 wpautop) */
.form-group label+br {
    display: none !important;
}