/* ========================================
   BEWERTUNGSTOOL - Frontend Styles
   Dark Immobilien Design
   ======================================== */

/* ---------- SLIDER ---------- */
.bwt-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden !important;
    font-family: inherit;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
}

.bwt-slider .bwt-slider-track {
    display: flex;
    gap: 24px;
    padding: 10px 5px;
}

/* Review Card - Dark Design */
.bwt-slider .bwt-review-card {
    flex: 1;
    min-width: 0;
    background: #1c1c28 !important;
    border: 1px solid rgba(212, 168, 67, 0.2) !important;
    border-radius: 16px !important;
    padding: 32px 28px 24px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    margin: 0;
}

.bwt-slider .bwt-review-card:hover {
    border-color: rgba(212, 168, 67, 0.45) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Quote Icon - Top Right */
.bwt-review-card .bwt-quote-icon {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 52px;
    height: 52px;
    background: #d4a843 !important;
    border-radius: 0 16px 0 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.bwt-review-card .bwt-quote-icon svg {
    fill: #1c1c28 !important;
    stroke: none !important;
}

/* Avatar */
.bwt-review-card .bwt-card-top {
    margin-bottom: 16px;
}

.bwt-review-card .bwt-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #d4a843, #b8912e) !important;
    color: #1c1c28 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    font-weight: 700 !important;
    border: 3px solid rgba(212, 168, 67, 0.3);
    line-height: 1;
}

/* Name */
.bwt-review-card .bwt-reviewer-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 2px;
    line-height: 1.3;
}

/* Firma */
.bwt-review-card .bwt-reviewer-firma {
    font-size: 13px !important;
    color: #8a8a9a !important;
    margin-bottom: 12px;
    font-style: italic;
}

/* Stars */
.bwt-review-card .bwt-stars {
    margin-bottom: 16px;
    font-size: 18px !important;
    letter-spacing: 2px;
    display: flex;
    gap: 2px;
}

.bwt-review-card .bwt-star {
    color: #3a3a4a;
}

.bwt-review-card .bwt-star-filled {
    color: #d4a843 !important;
}

/* Review Text */
.bwt-review-card .bwt-review-text {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #b8b8c8 !important;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Bottom */
.bwt-review-card .bwt-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bwt-review-card .bwt-review-date {
    font-size: 12px !important;
    color: #5a5a6a !important;
}

.bwt-review-card .bwt-foto-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px !important;
    color: #d4a843 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.bwt-review-card .bwt-foto-link:hover {
    color: #e8c05a !important;
}

/* Slider Navigation */
.bwt-slider .bwt-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.bwt-slider .bwt-prev,
.bwt-slider .bwt-next {
    background: #1c1c28 !important;
    border: 1px solid rgba(212, 168, 67, 0.25) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #d4a843 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.bwt-slider .bwt-prev:hover,
.bwt-slider .bwt-next:hover {
    background: #d4a843 !important;
    color: #1c1c28 !important;
    border-color: #d4a843 !important;
}

.bwt-slider .bwt-dots {
    display: flex;
    gap: 8px;
}

.bwt-slider .bwt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3a4a;
    cursor: pointer;
    transition: background 0.2s;
}

.bwt-slider .bwt-dot.bwt-dot-active {
    background: #d4a843 !important;
}

.bwt-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #8a8a9a;
    font-size: 16px;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .bwt-slider .bwt-review-card {
        padding: 28px 22px 20px !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}


/* ========================================
   FORM PAGE
   ======================================== */

/* Hide the WP page title on the form page */
.page-template-default .entry-title,
.page .entry-title,
.page .page-title,
body.page .elementor-heading-title,
body.page .entry-header,
.bwt-form-page ~ .entry-title,
article.page .entry-title {
    /* Don't globally hide - handle via JS fallback */
}

.bwt-form-page {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 20px 20px 80px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
}

.bwt-form-page *,
.bwt-form-page *::before,
.bwt-form-page *::after {
    box-sizing: border-box !important;
}

.bwt-form-page .bwt-form-wrapper {
    width: 100% !important;
    max-width: 580px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    padding: 48px 40px 40px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Header */
.bwt-form-page .bwt-form-header {
    text-align: center !important;
    margin-bottom: 36px !important;
}

.bwt-form-page .bwt-form-header-icon {
    display: none !important;
}

.bwt-form-page .bwt-form-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: #1a1a2e !important;
    letter-spacing: -0.3px !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    border: none !important;
}

.bwt-form-page .bwt-form-subtitle {
    color: #7a7a8a !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Fields */
.bwt-form-page .bwt-field {
    margin-bottom: 22px !important;
}

.bwt-form-page .bwt-field > label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #1a1a2e !important;
    letter-spacing: 0.1px !important;
    text-transform: none !important;
    padding: 0 !important;
}

.bwt-form-page .bwt-optional {
    font-weight: 400 !important;
    color: #aaa !important;
    font-size: 12px !important;
}

.bwt-form-page .bwt-field-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
}

.bwt-form-page .bwt-field-row > .bwt-field {
    flex: 1 !important;
    margin-bottom: 0 !important;
    width: auto !important;
}

.bwt-form-page .bwt-field input[type="text"],
.bwt-form-page .bwt-field textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid #e5e5ea !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    background: #fafafa !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.5 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.bwt-form-page .bwt-field input[type="text"]::placeholder,
.bwt-form-page .bwt-field textarea::placeholder {
    color: #bbb !important;
}

.bwt-form-page .bwt-field input[type="text"]:focus,
.bwt-form-page .bwt-field textarea:focus {
    outline: none !important;
    border-color: #d4a843 !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.12) !important;
    background: #fff !important;
}

.bwt-form-page .bwt-field textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

.bwt-form-page .bwt-char-count {
    text-align: right !important;
    font-size: 11px !important;
    color: #bbb !important;
    margin-top: 4px !important;
}

/* Star Rating */
.bwt-form-page .bwt-field-stars {
    text-align: center !important;
    background: #fafafa !important;
    border-radius: 14px !important;
    padding: 28px 20px 20px !important;
    border: 1.5px solid #e5e5ea !important;
    margin-bottom: 28px !important;
}

.bwt-form-page .bwt-field-stars > label {
    text-align: center !important;
    font-size: 15px !important;
    margin-bottom: 14px !important;
    color: #555 !important;
    font-weight: 500 !important;
}

.bwt-form-page .bwt-star-rating {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 44px !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.bwt-form-page .bwt-star-select {
    color: #ddd !important;
    transition: color 0.15s, transform 0.15s !important;
    user-select: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.bwt-form-page .bwt-star-select:hover {
    transform: scale(1.15) !important;
}

.bwt-form-page .bwt-star-select.bwt-star-hover,
.bwt-form-page .bwt-star-select.bwt-star-selected {
    color: #d4a843 !important;
}

.bwt-form-page .bwt-star-label {
    display: block !important;
    text-align: center !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    color: #d4a843 !important;
    font-weight: 600 !important;
    min-height: 22px !important;
}

/* Upload Area */
.bwt-form-page .bwt-upload-area {
    position: relative !important;
    border: 2px dashed #e0e0e5 !important;
    border-radius: 14px !important;
    transition: border-color 0.2s, background 0.2s !important;
    overflow: hidden !important;
    background: #fafafa !important;
}

.bwt-form-page .bwt-upload-area:hover,
.bwt-form-page .bwt-upload-area.bwt-drag-over {
    border-color: #d4a843 !important;
    background: rgba(212, 168, 67, 0.04) !important;
}

.bwt-form-page .bwt-file-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 0 !important;
}

.bwt-form-page .bwt-upload-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 32px 20px !important;
    color: #bbb !important;
    gap: 6px !important;
    pointer-events: none !important;
}

.bwt-form-page .bwt-upload-content svg {
    color: #ccc !important;
    margin-bottom: 4px !important;
}

.bwt-form-page .bwt-upload-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #888 !important;
}

.bwt-form-page .bwt-upload-hint {
    font-size: 12px !important;
    color: #bbb !important;
}

.bwt-form-page .bwt-upload-preview {
    position: relative !important;
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bwt-form-page .bwt-upload-preview img {
    max-height: 180px !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    object-fit: cover !important;
}

.bwt-form-page .bwt-remove-foto {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    line-height: 1 !important;
    transition: background 0.15s !important;
    padding: 0 !important;
}

.bwt-form-page .bwt-remove-foto:hover {
    background: #ef4444 !important;
}

/* Submit Button */
.bwt-form-page .bwt-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #d4a843, #b8912e) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.2s, transform 0.1s !important;
    font-family: inherit !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    line-height: 1.4 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.bwt-form-page .bwt-submit:hover {
    opacity: 0.9 !important;
}

.bwt-form-page .bwt-submit:active {
    transform: scale(0.99) !important;
}

.bwt-form-page .bwt-submit:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Footer Note */
.bwt-form-page .bwt-form-note {
    text-align: center !important;
    font-size: 12px !important;
    color: #bbb !important;
    margin: 16px 0 0 !important;
}

/* Messages */
.bwt-form-page .bwt-message {
    padding: 14px 18px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.bwt-form-page .bwt-message-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.bwt-form-page .bwt-message-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* Responsive Form */
@media (max-width: 600px) {
    .bwt-form-page {
        padding: 16px 12px 60px !important;
    }

    .bwt-form-page .bwt-form-wrapper {
        padding: 32px 20px 28px !important;
        border-radius: 16px !important;
    }

    .bwt-form-page .bwt-field-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .bwt-form-page .bwt-field-row > .bwt-field {
        margin-bottom: 22px !important;
    }

    .bwt-form-page .bwt-star-rating {
        font-size: 36px !important;
        gap: 8px !important;
    }
}
