/* Base form styling for Elementor compatibility */
.pss-form-elementor {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.pss-form-group {
    margin-bottom: 20px;
}

.pss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.pss-input,
.pss-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #bbcbdb99;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.pss-input:focus,
.pss-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Select2 styling for autocomplete */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 50px !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    padding: 0 !important;
    color: #333 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    top: 1px !important;
    right: 10px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

.select2-dropdown {
    border: 2px solid #007cba !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007cba !important;
}

/* Button styling */
.pss-button {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.pss-button-primary {
    background: #007cba;
    color: #fff;
}

.pss-button-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.pss-button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Checkbox styling */
.pss-checkbox-label {
    display: flex !important;
    align-items: center;
    font-weight: normal !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.pss-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
    transform: scale(1.2);
}

/* Messages */
.pss-messages {
    margin-top: 20px;
}

.pss-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

.pss-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

/* Counters */
.pss-counters {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.pss-counters h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: white;
    font-size: 24px;
}

.pss-counter-item {
    margin: 15px 0;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pss-counter-item span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .pss-form-group {
        margin-bottom: 15px;
    }
    
    .pss-input,
    .pss-select,
    .select2-container--default .select2-selection--single {
        font-size: 16px !important;
        padding: 10px 12px !important;
        height: 44px !important;
    }
    
    .pss-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .pss-counters {
        padding: 20px 15px;
    }
    
    .pss-counter-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Elementor widget compatibility */
.elementor-widget-container .pss-form-elementor {
    padding: 0;
}

.elementor-widget-container .pss-form-group label {
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
}

/* Additional Elementor-specific overrides */
.elementor-field-type-text .pss-input,
.elementor-field-type-email .pss-input,
.elementor-field-type-select .pss-select {
    border: 2px solid #e1e5e9 !important;
}