/* Frontend CSS für YOOsite Forms Ansicht für divi, elementor etc. */

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

.yoosite-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.yoosite-input,
.yoosite-form-group textarea,
.yoosite-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.yoosite-input:focus,
.yoosite-form-group textarea:focus,
.yoosite-form-group select:focus {
    border-color: #0073aa;
    outline: none;
}

.yoosite-form-submit {
    margin-top: 20px;
}

.yoosite-button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.yoosite-button:hover {
    background: #005e8a;
}

/* Select Box CSS */

.select-wrapper {
    display: block;
    width: 100%;
    position: relative; /* wichtig für z-index */
    z-index: 1;
    overflow: visible;
}

.select-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 0px;
    user-select: none;
    margin-bottom: 6px;
}

.select-icon {
    transition: transform 0.3s ease;
}

.select-icon.open {
    transform: rotate(180deg);
}

.select-box {
    display: none;
    margin-top: 5px;
    position: absolute;      /* ← jetzt über alles */
    z-index: 9999;           /* ← höher als reCAPTCHA */
    background: #fff;        /* optional: Sichtbarkeit */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* optional */
    width: 100%;             /* gleiche Breite wie toggle */
}

.select-box select {
    display: block;
    width: 100%;
    min-height: 100px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 12px;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.select-box.visible {
    display: block;
}

@media (max-width: 768px) {
  select[data-original-type="multiple"]:not([multiple]) {
    padding: 10px;
    font-size: 16px;
    line-height: 1.4;
    height: auto !important;
    min-height: auto !important;
    box-shadow: none;
    appearance: none;
  }
}
