/* Alpebock Anmeldung – Frontend Formular
   Design abgestimmt auf alpebock.ch (Hello Elementor / Inter Font) */

.alpebock-form-wrapper {
    max-width: 680px;
    margin: 2rem auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #000;
    line-height: 1.6;
}

/* Wanderungs-Info Header */
.alpebock-hike-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #000;
}

.alpebock-hike-info h3 {
    font-family: "Cardo", "Georgia", serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 0.75rem;
    color: #000;
}

.alpebock-hike-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.alpebock-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #32373c;
}

.alpebock-meta-item svg {
    flex-shrink: 0;
    color: #32373c;
}

/* Fieldsets */
.alpebock-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.alpebock-fieldset legend {
    font-family: "Cardo", "Georgia", serif;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

/* Form Grid */
.alpebock-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.alpebock-field-full {
    grid-column: 1 / -1;
}

/* Fields */
.alpebock-field {
    display: flex;
    flex-direction: column;
}

.alpebock-field label {
    font-size: 13px;
    font-weight: 500;
    color: #32373c;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.alpebock-field label .required {
    color: #cf2e2e;
}

.alpebock-field input,
.alpebock-field textarea,
.alpebock-field select {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.alpebock-field input:focus,
.alpebock-field textarea:focus {
    outline: none;
    border-color: #000;
}

.alpebock-field input.alpebock-error,
.alpebock-field textarea.alpebock-error {
    border-color: #cf2e2e;
}

.alpebock-field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.alpebock-field-error {
    font-size: 12px;
    color: #cf2e2e;
    margin-top: 4px;
}

/* Anzahl Personen */
.alpebock-field input[type="number"] {
    max-width: 120px;
}

/* Add-ons */
.alpebock-addons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alpebock-addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.alpebock-addon-item:has(.alpebock-addon-checkbox:checked) {
    border-color: #000;
    background: #f5f5f5;
}

.alpebock-addon-info {
    flex: 1;
}

.alpebock-addon-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #000;
}

.alpebock-addon-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #32373c;
    cursor: pointer;
}

.alpebock-addon-name {
    flex: 1;
}

.alpebock-addon-price {
    font-weight: 500;
    white-space: nowrap;
}

.alpebock-addon-desc {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    padding-left: 28px;
}

.alpebock-addon-qty {
    margin-left: 1rem;
}

.alpebock-addon-qty label {
    font-size: 13px;
    color: #32373c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alpebock-addon-qty-input {
    width: 60px !important;
    max-width: 60px !important;
    padding: 6px 8px !important;
    font-size: 14px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* Preisübersicht */
.alpebock-price-summary {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.alpebock-price-summary h4 {
    font-family: "Cardo", "Georgia", serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 0.75rem;
    color: #000;
}

.alpebock-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #32373c;
}

.alpebock-price-row.alpebock-price-total {
    border-top: 2px solid #000;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* Submit Button – passend zum alpebock.ch Design */
.alpebock-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #32373c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 0.02em;
}

.alpebock-submit-btn:hover {
    background: #000;
}

.alpebock-submit-btn:disabled {
    background: #abb8c3;
    cursor: not-allowed;
}

.alpebock-submit-btn.alpebock-loading {
    position: relative;
    color: transparent;
}

.alpebock-submit-btn.alpebock-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: alpebock-spin 0.6s linear infinite;
}

@keyframes alpebock-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.alpebock-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.alpebock-form-message.alpebock-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.alpebock-form-message.alpebock-error-msg {
    background: #fce4ec;
    border: 1px solid #ef5350;
    color: #c62828;
}

/* Ausgebucht */
.alpebock-sold-out-message {
    text-align: center;
    padding: 3rem 2rem;
}

.alpebock-sold-out-message h4 {
    font-family: "Cardo", "Georgia", serif;
    font-size: 24px;
    font-weight: 400;
    color: #cf2e2e;
    margin: 1rem 0 0.5rem;
}

.alpebock-sold-out-message p {
    color: #666;
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.alpebock-sold-out-message a {
    color: #32373c;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .alpebock-form-wrapper {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .alpebock-hike-info h3 {
        font-size: 22px;
    }

    .alpebock-hike-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .alpebock-form-grid {
        grid-template-columns: 1fr;
    }

    .alpebock-addon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .alpebock-addon-qty {
        margin-left: 28px;
    }

    .alpebock-price-row.alpebock-price-total {
        font-size: 16px;
    }
}
