/* ================================================================
   Form Styles – shared across all contact-form / form-field pages
   ================================================================ */

/* ── Override theme transparent borders ── */
.contact-form input:not(:focus),
.contact-form textarea:not(:focus) {
    border-color: #d0d5dd !important;
}

/* ── All text inputs, selects, textareas ── */
.contact-form input:not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="checkbox"]),
.contact-form textarea,
.contact-form select {
    border: 1.5px solid #d0d5dd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    height: 48px !important;
    font-size: 15px !important;
    color: #1d2939 !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none;
}

.contact-form textarea {
    height: 130px !important;
    padding-top: 12px !important;
    resize: vertical;
}

/* ── Hover ── */
.contact-form input:not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="checkbox"]):hover,
.contact-form textarea:hover,
.contact-form select:hover {
    border-color: #98a2b3 !important;
}

/* ── Focus ── */
.contact-form input:not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="checkbox"]):focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #02a95c !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(2, 169, 92, 0.12) !important;
    outline: none !important;
    color: #1d2939 !important;
}

/* ── Placeholder ── */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #98a2b3 !important;
    opacity: 1;
}

.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder { color: #98a2b3 !important; }
.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder { color: #98a2b3 !important; }

/* ── Labels ── */
.contact-form .form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.contact-form .form-field label small {
    font-weight: 400;
}

/* ── Form field spacing ── */
.contact-form .form-field.mb-25 {
    margin-bottom: 20px !important;
}

/* ── Checkbox ── */
.contact-form input[type="checkbox"] {
    width: 20px;
    height: 20px !important;
    border: 1.5px solid #d0d5dd !important;
    border-radius: 4px !important;
    cursor: pointer;
    accent-color: #02a95c;
    box-shadow: none !important;
    padding: 0 !important;
    vertical-align: middle;
    margin-right: 8px;
}

/* ── Select dropdown ── */
.contact-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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='%23667085' d='M6 8.825L.35 3.175 1.175 2.35 6 7.175 10.825 2.35l.825.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px !important;
    cursor: pointer;
}

.contact-form select option {
    padding: 8px 15px;
    font-size: 14px;
}

/* ── Form container ── */
.contact-form {
    border-radius: 12px;
}

/* ── Section titles ── */
.contact-form .form-title {
    color: #101828;
    font-weight: 700;
}

.form-subtitle {
    font-size: 19px;
    font-weight: 700;
    color: #101828;
    padding-bottom: 10px;
    border-bottom: 3px solid #02a95c;
    display: inline-block;
}

/* ── Reference cards ── */
.reference-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1.5px solid #e4e7ec;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.reference-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
}

.reference-card h5 {
    color: #344054;
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 16px;
}

.reference-card h5 i {
    color: #02a95c;
}

/* ── File upload inputs ── */
.contact-form .form-control-file {
    padding: 16px !important;
    border: 2px dashed #d0d5dd !important;
    border-radius: 10px !important;
    background-color: #f9fafb !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    width: 100%;
    height: auto !important;
    box-shadow: none !important;
}

.contact-form .form-control-file:hover {
    border-color: #02a95c !important;
    background-color: #ecfdf3 !important;
}

/* ── Validation errors ── */
.has-error input,
.has-error textarea,
.has-error select {
    border-color: #f04438 !important;
}

.has-error input:focus,
.has-error textarea:focus,
.has-error select:focus {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(240, 68, 56, 0.12) !important;
}

.has-error .help-block.with-errors {
    color: #f04438;
    font-size: 13px;
    margin-top: 6px;
}

/* ── Submit button ── */
.contact-form .main-btn {
    margin-top: 15px;
    padding: 14px 44px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.contact-form .main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 169, 92, 0.25);
}

/* ── Info / muted text ── */
.contact-form .text-muted {
    color: #667085 !important;
    font-size: 13px;
}

.contact-form .text-danger {
    color: #f04438 !important;
}

/* ── Widget / admin form styles (non contact-form pages) ── */
.search-widget .form-field input:not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="checkbox"]),
.search-widget .form-field textarea,
.search-widget .form-field select {
    border: 1.5px solid #d0d5dd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    height: 48px !important;
    font-size: 15px !important;
    color: #1d2939 !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.selection{
    width:100%;
}

.search-widget .form-field textarea {
    height: 130px !important;
    padding-top: 12px !important;
}

.search-widget .form-field input:not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="checkbox"]):focus,
.search-widget .form-field textarea:focus,
.search-widget .form-field select:focus {
    border-color: #02a95c !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(2, 169, 92, 0.12) !important;
    outline: none !important;
}

/* ── Select2 overrides to match form theme ── */

/* Hide the original select when Select2 is active */
.contact-form select.select2-searchable {
    display: none !important;
}

/* Reset theme styles leaking into ALL Select2 internal inputs */
.select2-container *,
.select2-dropdown *,
.select2-container input[type="search"],
.select2-container input[type="text"],
.select2-container input,
.select2-dropdown input[type="search"],
.select2-dropdown input[type="text"],
.select2-dropdown input,
input.select2-search__field,
.select2-search--dropdown input.select2-search__field,
.select2-search input {
    border: none !important;
    height: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #1d2939 !important;
    -webkit-appearance: none !important;
    transition: none !important;
}

/* Select2 container full width */
.select2-container {
    width: 100% !important;
}
/* Main select box */
.select2-container--default .select2-selection--single {
    border: 1.5px solid #d0d5dd !important;
    border-radius: 8px !important;
    height: 48px !important;
    padding: 0 16px !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #98a2b3 !important;
}

/* Selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    color: #1d2939 !important;
    padding-left: 0 !important;
    padding-right: 30px !important;
    font-size: 15px !important;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 12px !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #667085 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-top: -3px !important;
}

/* Open state */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #02a95c !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(2, 169, 92, 0.12) !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #02a95c transparent !important;
    border-width: 0 5px 6px 5px !important;
}

/* Dropdown panel */
.select2-dropdown {
    border: 1.5px solid #e4e7ec !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12) !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    background-color: #fff !important;
}

/* Search area inside dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 10px 12px !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #e4e7ec !important;
}

/* Search input - high specificity to beat main.css global input rules */
.select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container .select2-search--dropdown input.select2-search__field,
input.select2-search__field {
    border: 1.5px solid #d0d5dd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #1d2939 !important;
    outline: none !important;
    height: 38px !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    width: 100% !important;
    -webkit-appearance: none !important;
}

.select2-search--dropdown .select2-search__field:focus,
.select2-container--default .select2-search--dropdown .select2-search__field:focus,
input.select2-search__field:focus {
    border-color: #02a95c !important;
    box-shadow: 0 0 0 3px rgba(2, 169, 92, 0.12) !important;
}

/* Results list */
.select2-results {
    background-color: #fff !important;
}

.select2-results__options {
    max-height: 250px !important;
    background-color: #fff !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #344054 !important;
    background-color: #fff !important;
    transition: background 0.15s !important;
}

/* Hover */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #02a95c !important;
    color: #fff !important;
}

/* Already selected */
.select2-container--default .select2-results__option--selected {
    background-color: #ecfdf3 !important;
    color: #027a48 !important;
    font-weight: 600 !important;
}

/* No results message */
.select2-results__message {
    padding: 12px 14px !important;
    color: #667085 !important;
    font-size: 14px !important;
}
