/* LocalGreece Registration Community - Select2 Styles */

.lgrc5-field {
  margin-bottom: 15px;
}

.lgrc5-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.lgrc5-field select {
  width: 100% !important;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
/* Focus + Hover States */
.lgrc5-field select:focus {
  border-color: #0073aa; /* WP blue */
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.lgrc5-field .select2-container--default .select2-selection--single {
  height: 42px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  background-color: #fff;
}

.lgrc5-field .select2-selection__placeholder {
  color: #888;
  font-style: italic;
}
/* Dropdown results */
.lgrc5-field .select2-container--default .select2-results > .select2-results__options {
  max-height: 250px;
  overflow-y: auto;
  font-size: 14px;
}

.lgrc5-field .select2-container--default .select2-results__option {
  padding: 8px 12px;
  cursor: pointer;
}

.lgrc5-field .select2-container--default .select2-results__option--highlighted {
  background-color: #0073aa;
  color: #fff;
}
/* Error message below dropdown */
.lgrc5-field .lgrc5-error {
  color: #d63638;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

/* Align with WPQA theme */
.lgrc5-field label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.lgrc5-field {
  margin-bottom: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .lgrc5-field .select2-container--default .select2-selection--single {
    font-size: 14px;
    padding: 6px 8px;
  }
}

.lgrc5-field { clear: both; }
/* Wrapper field styling */
.lgrc4-field {
  margin-bottom: 15px;
  position: relative;
}

/* Label styling same as other labels */
.lgrc5-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

/* Select2 input box */
.lgrc5-field .select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  transition: border-color 0.2s;
}

/* On focus */
.lgrc5-field .select2-container--default .select2-selection--single:focus,
.lgrc5-field .select2-container--default .select2-selection--single:hover {
  border-color: #999;
}

/* Dropdown arrow */
.lgrc5-field .select2-selection__arrow {
  top: 8px;
  right: 10px;
}

/* Dropdown results */
.select2-container--default .select2-results__option {
  padding: 8px 12px;
  font-size: 14px;
}
.lgrc5-select-wrap {
  position: relative;
}

.lgrc5-select-wrap i.icon-location {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none;
  z-index: 2;
}

.lgrc5-select-wrap .select2-container--default .select2-selection--single {
  padding-left: 35px; /* χώρος για το εικονίδιο */
}
/* Wrapper για το Select2 */
.lgrc5-select-wrap {
  position: relative;
}

/* Εικονίδιο */
.lgrc5-select-wrap i.icon-location {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none;
  z-index: 2;
}

/* Input box με padding για το εικονίδιο */
.lgrc5-select-wrap .select2-container--default .select2-selection--single {
  padding-left: 35px !important;
  height: 42px;
  display: flex;
  align-items: center;
}
/* =========================================================
 *  Basic CSS για Select2 με εικονίδιο
 * ========================================================= */
add_action('wp_head', function(){ ?>
<style>
.lgrc5-field{
  margin-bottom:15px;
  position:relative;
}
.lgrc5-field label{
  font-weight:600;
  margin-bottom:5px;
  display:block;
}
.lgrc5-field .select2-container--default .select2-selection--single{
  height:42px;
  border:1px solid #ddd;
  border-radius:6px;
  padding:6px 12px 6px 34px;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%230073aa' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/></svg>") no-repeat 10px center;
  background-size:16px 16px;
}
.lgrc5-field .select2-selection__rendered{
  line-height:28px;
}
</style>
<?php });

