/*! Custom Form Fields Styling */

.custom-field-wrapper {
    margin-bottom: 20px;
}

.custom-field-wrapper .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.custom-field-wrapper .form-input,
.custom-field-wrapper .custom-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.custom-field-wrapper .form-input:focus,
.custom-field-wrapper .custom-field:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.custom-field-wrapper textarea.custom-field {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.custom-field-wrapper select.custom-field {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

.custom-field-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-field-option {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.custom-field-option:hover {
    background: #fff !important;
    border-color: #C9A96E !important;
}

.custom-field-option input[type="radio"],
.custom-field-option input[type="checkbox"] {
    order: 2 !important;
    margin: 0 0 0 10px !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    accent-color: #C9A96E !important;
    flex-shrink: 0 !important;
}

.custom-field-option span {
    order: 1 !important;
    flex: 1 !important;
    font-size: 15px !important;
    color: #333 !important;
    text-align: right !important;
    margin: 0 !important;
}

.custom-field-option input:checked + span,
.custom-field-option:has(input:checked) {
    font-weight: 600;
    color: #C9A96E;
}

/* RTL Support */
[dir="rtl"] .custom-field-wrapper select.custom-field {
    background-position: right 15px center;
    padding-right: 40px;
    padding-left: 15px;
}

[dir="rtl"] .custom-field-option input[type="radio"],
[dir="rtl"] .custom-field-option input[type="checkbox"] {
    margin-left: 0;
    margin-right: 10px;
}

/* For WordPress Forms (prshor & contact_us) */
.prshorshort .custom-fields-container .cusinpput,
.unform .custom-fields-container .cusinpput,
.contact_us .custom-fields-container .cusinpput {
    margin-bottom: 20px;
}

.prshorshort .custom-fields-container .custom-field-wrapper,
.unform .custom-fields-container .custom-field-wrapper,
.contact_us .custom-fields-container .custom-field-wrapper {
    margin-bottom: 20px;
}

.custom-fields-container .form-group {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-field-wrapper .form-label {
        font-size: 13px;
    }
    
    .custom-field-wrapper .form-input,
    .custom-field-wrapper .custom-field {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .custom-field-option {
        padding: 10px;
    }
}

/* Animation for new fields */
.custom-field-wrapper {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error state */
.custom-field-wrapper .custom-field.error {
    border-color: #dc3545;
}

.custom-field-wrapper .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.custom-field-wrapper.has-error .error-message {
    display: block;
}

/* Success state */
.custom-field-wrapper .custom-field.success {
    border-color: #28a745;
}



