/* S6 Brochure Form — matches site WPForms styles */
.s6-brochure-form-wrap {
    max-width: 600px;
    margin: 0 auto;
}

/* Field wrapper */
.s6-brochure-field {
    position: relative;
    margin-bottom: 10px;
}

/* Inputs, selects */
.s6-brochure-field input[type="text"],
.s6-brochure-field input[type="email"],
.s6-brochure-field input[type="tel"],
.s6-brochure-field select {
    background: transparent;
    width: 100%;
    outline: 0;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    border: 1px solid #fff !important;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    color: #fff !important;
    height: 52px;
    line-height: 52px;
    padding: 0 15px;
}

.s6-brochure-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.s6-brochure-field input:active,
.s6-brochure-field input:focus,
.s6-brochure-field select:active,
.s6-brochure-field select:focus {
    border: 1px solid #c5e4e7 !important;
}

/* Select styling */
.s6-brochure-field select {
    text-indent: 10px;
    -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='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.s6-brochure-field select option {
    color: #000 !important;
}

/* Select2 theme overrides */
.s6-brochure-form-wrap .select2-container--default .select2-selection--multiple {
    background: transparent;
    border: 1px solid #fff !important;
    border-radius: 4px;
    min-height: 52px;
    padding: 6px 10px;
    transition: all 0.2s ease-in-out;
}

.s6-brochure-form-wrap .select2-container--default.select2-container--focus .select2-selection--multiple,
.s6-brochure-form-wrap .select2-container--default.select2-container--open .select2-selection--multiple {
    border: 1px solid #c5e4e7 !important;
}

.s6-brochure-form-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(197, 228, 231, 0.2);
    border: 1px solid #c5e4e7;
    color: #fff;
    border-radius: 3px;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
}

.s6-brochure-form-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #c5e4e7;
    margin-right: 5px;
}

.s6-brochure-form-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
}

/* Hide the inline search input — we use a + button instead */
.s6-brochure-form-wrap .select2-container--default .select2-search--inline .select2-search__field {
    width: 0 !important;
    padding: 0;
    margin: 0;
    border: none !important;
    height: 0;
    overflow: hidden;
}

.s6-brochure-form-wrap .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Custom placeholder label */
.s6-brochure-form-wrap .s6-select2-placeholder {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

/* "+" add button inside Select2 */
.s6-brochure-form-wrap .select2-container--default .select2-selection--multiple {
    position: relative;
    padding-right: 44px;
}

.s6-brochure-form-wrap .s6-select2-add-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 1px solid #c5e4e7;
    border-radius: 50%;
    background: transparent;
    color: #c5e4e7;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.s6-brochure-form-wrap .s6-select2-add-btn:hover {
    background: #c5e4e7;
    color: #235461;
}

/* Select2 dropdown */
.select2-container--default .select2-results__option {
    color: #333 !important;
}

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

/* Newsletter checkbox */
.s6-brochure-newsletter {
    display: flex;
    align-items: center;
}

.s6-brochure-newsletter label {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.s6-brochure-newsletter input[type="checkbox"] {
    accent-color: #c5e4e7;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Submit button */
.s6-brochure-submit {
    text-align: center;
}

.s6-brochure-btn {
    background: none;
    border: 1px solid #c5e4e7;
    border-radius: 15px;
    height: 35px;
    color: #c5e4e7;
    line-height: 35px;
    padding: 0 18px;
    margin: 0 0 16px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.s6-brochure-btn:hover {
    background: #c5e4e7;
    color: #235461;
}

.s6-brochure-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.s6-brochure-messages {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.s6-brochure-messages.s6-success {
    background: transparent;
    color: #c5e4e7;
    border: 1px solid #c5e4e7;
}

.s6-brochure-messages.s6-error {
    background: transparent;
    color: #f5c6cb;
    border: 1px solid #f5c6cb;
}

/* Lightbox context */
.lightbox-element-content .s6-brochure-form-wrap {
    padding: 20px;
    max-width: 100%;
}

/* Hidden content for lightbox cloning — only inside the hover-box source */
.hover-box .s6-brochure-lightbox-content {
    display: none;
}

/* Brochure box trigger button */
.s6-brochure-lightbox-trigger {
    cursor: pointer;
}
