.rada-wa-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    /* Remove padding from container, move to inner elements */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    /* For header radius */
}

.rada-form-header {
    background-color: #111827;
    /* Dark Blue/Black */
    padding: 20px 30px;
    color: #fff;
}

.rada-form-title {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Optional: If user puts strong tags in title for "Advisor" part, style them gold */
.rada-form-title strong {
    color: #ffd700;
}

.rada-form-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #d1d5db;
    display: flex;
    align-items: center;
    /* Top align if multi-line? Center for icon */
    gap: 8px;
}

.rada-shield-icon {
    color: #ffd700;
    /* Gold shield */
    min-width: 20px;
}

.rada-wa-form.rada-form-row {
    padding: 30px;
    /* Restore padding for form fields */
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 0;
}

.rada-wa-form .rada-form-group {
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.rada-col-100 {
    width: 100%;
}

.rada-col-50 {
    width: 50%;
}

.rada-col-33 {
    width: 33.333%;
}

.rada-col-25 {
    width: 25%;
}

@media (max-width: 768px) {

    .rada-col-50,
    .rada-col-33,
    .rada-col-25 {
        width: 100%;
    }
}

.rada-wa-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rada-wa-form label .required {
    color: #cc0000;
}

.rada-wa-form .rada-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rada-wa-form .rada-form-control:focus {
    border-color: #00A326;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 163, 38, 0.2);
}

.rada-wa-form textarea.rada-form-control {
    min-height: 100px;
    resize: vertical;
}

.rada-wa-form .rada-radio-group,
.rada-wa-form .rada-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 5px;
}

.rada-wa-form .rada-radio-item,
.rada-wa-form .rada-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #4b5563;
}

.rada-wa-form input[type="radio"],
.rada-wa-form input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: #00A326;
    margin: 0;
}

.rada-wa-form .rada-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #00A326;
    /* WhatsApp / Brand Green */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.rada-wa-form .rada-submit-btn:hover {
    background-color: #008a20;
}

.rada-wa-form .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Custom Select Replacement */
.rada-custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    margin-bottom: 20px;
}

.rada-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.15s ease-in-out;
}

.rada-custom-select.open .rada-select-trigger {
    border-color: #00A326;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.rada-select-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6b7280;
    transition: transform 0.2s;
    margin-left: 10px;
}

.rada-custom-select.open .rada-select-trigger::after {
    transform: rotate(180deg);
}

.rada-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #00A326;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rada-custom-select.open .rada-select-options {
    display: block;
}

.rada-select-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 1rem;
    color: #374151;
}

.rada-select-option:hover {
    background-color: #00A326;
    color: #fff;
}

.rada-select-option.selected {
    background-color: #f3f4f6;
    font-weight: 600;
}

.rada-select-option.selected:hover {
    background-color: #00A326;
    color: #fff;
}

/* Hide original select but keep it for form submission */
.rada-wa-form select.rada-form-control {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.rada-form-footer {
    width: 100%;
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rada-clock-icon {
    color: #d97706;
    /* Amber/Orange */
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Keyword Search Shortcode Styles */
.rada-keyword-search-container {
    width: 100%;
    max-width: 400px;
    /* More compact */
    margin-bottom: 20px;
}

.rada-keyword-search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: #f9fafb;
    /* Light background for the whole form */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.rada-search-input-wrapper {
    flex-grow: 1;
    min-width: 200px;
}

.rada-keyword-search-form input.rada-search-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    color: #111827;
    background: transparent;
    box-sizing: border-box;
}

.rada-keyword-search-form input.rada-search-input::placeholder {
    font-size: 11px;
    color: #9ca3af;
    /* Light grey */
    font-weight: 400;
}

.rada-keyword-search-form input.rada-search-input:focus {
    background-color: #fff;
    outline: 0;
}

.rada-search-submit {
    background-color: #00A326;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rada-search-submit .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Smart Sticky Search Sidebar (Desktop) */
@media (min-width: 1025px) {

    /* 1. Reset ONLY the necessary parents to overflow: visible to enable sticky */
    html,
    body,
    #page,
    #content,
    .elementor-section,
    .elementor-column,
    .elementor-widget-wrap,
    .elementor-widget-listivo_search_v2,
    .elementor-widget-listivo_search_v2>.elementor-widget-container,
    .listivo-app,
    .listivo-search-v2,
    .listivo-search-v2__content {
        overflow: visible !important;
    }

    /* 2. Setup the flex container */
    .listivo-search-v2__content {
        display: flex !important;
        align-items: flex-start !important;
        /* REQUIRED for sticky */
        gap: 30px;
        /* Modern spacing */
    }

    /* 3. The Sticky Sidebar Pillar */
    .listivo-search-v2__sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        /* Offset from top */
        z-index: 100 !important;

        /* Premium Design System Styling */
        background: #ffffff !important;
        border: 1px solid #edf2f7 !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
        padding: 24px !important;

        /* Fixed Width */
        width: 300px !important;
        min-width: 300px !important;

        /* Scrollable content within the pillar */
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;

        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .listivo-search-v2__sidebar:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
    }

    /* WP Admin Bar Correction */
    .admin-bar .listivo-search-v2__sidebar {
        top: 132px !important;
        max-height: calc(100vh - 172px) !important;
    }

    /* Reset the internal elements that were being targeted before */
    .listivo-search-sidebar {
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    /* Results expansion */
    .listivo-search-v2__results {
        margin-left: 0 !important;
        flex: 1 !important;
    }

    /* Premium Scrollbar for Sidebar */
    .listivo-search-v2__sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .listivo-search-v2__sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .listivo-search-v2__sidebar::-webkit-scrollbar-thumb {
        background: #00A326;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .rada-keyword-search-form {
        flex-direction: column;
    }

    .rada-search-submit {
        padding: 12px;
    }
}