/* Bewässerungs-Anfrage – Styles (gleiches Design wie Rollrasen-Kalkulator) */

.ba-wrapper {
    max-width: 560px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c2c2a;
    line-height: 1.5;
}

.ba-card {
    background: #fdfcf8;
    border: 1px solid #e5e3db;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ba-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ececec;
}

.ba-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #dceef7;
    color: #1a5d8c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ba-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2a;
}

.ba-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b6b67;
}

.ba-intro {
    margin: 0 0 1.5rem;
    font-size: 14px;
    color: #5f5e5a;
    line-height: 1.55;
}

.ba-form-title {
    margin: 1.5rem 0 1rem;
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2a;
}

.ba-form-title:first-of-type {
    margin-top: 0;
}

.ba-form-row {
    margin-bottom: 1rem;
}

.ba-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5f5e5a;
    margin-bottom: 6px;
}

.ba-optional {
    font-weight: 400;
    color: #888780;
    font-size: 12px;
}

.ba-form-row input[type="text"],
.ba-form-row input[type="email"],
.ba-form-row input[type="tel"],
.ba-form-row input[type="number"],
.ba-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    color: #2c2c2a;
    transition: border-color 0.15s ease;
}

.ba-form-row input:focus,
.ba-form-row textarea:focus {
    outline: none;
    border-color: #1a5d8c;
    box-shadow: 0 0 0 3px rgba(26, 93, 140, 0.15);
}

.ba-form-row textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.ba-input-with-suffix {
    position: relative;
}

.ba-input-with-suffix input {
    padding-right: 42px !important;
}

.ba-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888780;
    pointer-events: none;
}

/* Chips / Mehrfachauswahl */
.ba-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.ba-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    color: #5f5e5a;
    transition: all 0.15s ease;
    margin: 0 !important;
    user-select: none;
}

.ba-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ba-chip:hover {
    border-color: #1a5d8c;
    color: #2c2c2a;
}

.ba-chip:has(input:checked) {
    background: #dceef7;
    border-color: #1a5d8c;
    color: #1a5d8c;
    font-weight: 500;
}

/* Fallback für ältere Browser ohne :has */
.ba-chip input:checked + span {
    color: #1a5d8c;
    font-weight: 500;
}

/* Upload */
.ba-upload-area {
    position: relative;
    border: 2px dashed #d0cec4;
    border-radius: 10px;
    background: #fafaf5;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ba-upload-area:hover,
.ba-upload-area.ba-dragover {
    border-color: #1a5d8c;
    background: #eaf3f9;
}

.ba-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ba-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    color: #5f5e5a;
}

.ba-upload-prompt svg {
    color: #1a5d8c;
}

.ba-upload-text {
    font-size: 14px;
}

.ba-upload-text strong {
    color: #1a5d8c;
}

.ba-upload-hint {
    font-size: 12px;
    color: #888780;
}

.ba-file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.ba-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e3db;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.ba-file-list .ba-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    color: #2c2c2a;
}

.ba-file-list .ba-file-size {
    color: #888780;
    font-size: 12px;
    flex-shrink: 0;
}

.ba-file-list .ba-file-remove {
    background: none;
    border: none;
    color: #a32d2d;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    font-family: inherit;
}

.ba-file-list .ba-file-remove:hover {
    color: #6b1d1d;
}

/* Checkboxen (Datenschutz etc.) */
.ba-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #444441;
    margin: 1.25rem 0;
    cursor: pointer;
    user-select: none;
}

.ba-checkbox input {
    margin: 3px 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

.ba-privacy {
    font-size: 13px;
    color: #5f5e5a;
}

.ba-privacy a {
    color: #1a5d8c;
    text-decoration: underline;
}

/* Button */
.ba-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: center;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.ba-btn-primary {
    background: #1a5d8c;
    color: #fff;
    border-color: #1a5d8c;
}

.ba-btn-primary:hover {
    background: #144a70;
    border-color: #144a70;
}

.ba-btn-primary:active {
    transform: scale(0.99);
}

/* Alerts */
.ba-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.ba-alert-success {
    background: #dceef7;
    color: #1a5d8c;
    border: 1px solid #a8d2ea;
}

.ba-alert-error {
    background: #fcebeb;
    color: #a32d2d;
    border: 1px solid #f7c1c1;
}

/* Mobile */
@media (max-width: 480px) {
    .ba-wrapper {
        margin: 1rem auto;
    }
    .ba-card {
        padding: 1.25rem;
        border-radius: 10px;
    }
}
