/* ==============================================
   Aero Heli Gutschein – Frontend Styles
   ============================================== */

:root {
    --ebh-primary: #1a2a4a;
    --ebh-primary-light: #2a3a5a;
    --ebh-accent: #b8860b;
    --ebh-accent-light: #d4a017;
    --ebh-success: #28a745;
    --ebh-danger: #dc3545;
    --ebh-text: #333;
    --ebh-text-light: #666;
    --ebh-text-muted: #999;
    --ebh-bg: #ffffff;
    --ebh-bg-alt: #f8f9fa;
    --ebh-border: #e0e0e0;
    --ebh-radius: 10px;
    --ebh-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --ebh-transition: all 0.3s ease;
}

.ebh-booking-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ebh-text);
}

/* Progress */
.ebh-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 20px;
}

.ebh-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: var(--ebh-transition);
}

.ebh-progress-step.active {
    opacity: 1;
}

.ebh-progress-step.completed .ebh-step-number {
    background: var(--ebh-success);
    color: #fff;
}

.ebh-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ebh-bg-alt);
    border: 2px solid var(--ebh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--ebh-transition);
}

.ebh-progress-step.active .ebh-step-number {
    background: var(--ebh-primary);
    color: #fff;
    border-color: var(--ebh-primary);
}

.ebh-step-label {
    font-size: 12px;
    color: var(--ebh-text-muted);
    white-space: nowrap;
}

.ebh-progress-step.active .ebh-step-label {
    color: var(--ebh-primary);
    font-weight: 600;
}

.ebh-progress-line {
    flex: 1;
    height: 2px;
    background: var(--ebh-border);
    margin: 0 12px;
    margin-bottom: 28px;
    max-width: 80px;
}

/* Step Title */
.ebh-step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ebh-primary);
    margin: 0 0 24px 0;
    padding: 0;
}

/* Flight Cards */
.ebh-flight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ebh-flight-card {
    cursor: pointer;
    display: block;
}

.ebh-flight-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ebh-flight-card-inner {
    background: var(--ebh-bg);
    border: 2px solid var(--ebh-border);
    border-radius: var(--ebh-radius);
    padding: 24px 20px;
    text-align: center;
    transition: var(--ebh-transition);
    position: relative;
    overflow: hidden;
}

.ebh-flight-card-inner:hover {
    border-color: var(--ebh-accent);
    box-shadow: var(--ebh-shadow);
    transform: translateY(-2px);
}

.ebh-flight-card input:checked + .ebh-flight-card-inner {
    border-color: var(--ebh-primary);
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(26, 42, 74, 0.15);
}

.ebh-flight-card input:checked + .ebh-flight-card-inner::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--ebh-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ebh-flight-card-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.ebh-flight-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ebh-primary);
    margin: 0 0 6px 0;
}

.ebh-flight-card-desc {
    font-size: 13px;
    color: var(--ebh-text-light);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ebh-flight-card-meta {
    font-size: 12px;
    color: var(--ebh-text-muted);
    margin-bottom: 12px;
}

.ebh-flight-card-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--ebh-accent);
}

/* Form Elements */
.ebh-form-group {
    margin-bottom: 20px;
}

.ebh-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ebh-text);
    margin-bottom: 6px;
}

.ebh-form-group input,
.ebh-form-group textarea,
.ebh-form-group select,
.ebh-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ebh-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--ebh-transition);
    background: var(--ebh-bg);
    color: var(--ebh-text);
    box-sizing: border-box;
}

.ebh-form-group input:focus,
.ebh-form-group textarea:focus,
.ebh-form-group select:focus {
    border-color: var(--ebh-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 42, 74, 0.1);
}

.ebh-form-group input.ebh-error,
.ebh-form-group textarea.ebh-error {
    border-color: var(--ebh-danger);
}

.ebh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Gift Toggle */
.ebh-gift-toggle {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--ebh-bg-alt);
    border-radius: var(--ebh-radius);
}

.ebh-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ebh-toggle input {
    display: none;
}

.ebh-toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--ebh-border);
    border-radius: 13px;
    position: relative;
    transition: var(--ebh-transition);
    flex-shrink: 0;
}

.ebh-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: var(--ebh-transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ebh-toggle input:checked + .ebh-toggle-slider {
    background: var(--ebh-primary);
}

.ebh-toggle input:checked + .ebh-toggle-slider::after {
    transform: translateX(22px);
}

.ebh-toggle-label {
    font-size: 15px;
    font-weight: 500;
}

.ebh-gift-fields {
    margin-top: 16px;
    padding: 20px;
    background: var(--ebh-bg-alt);
    border-radius: var(--ebh-radius);
    border: 1px dashed var(--ebh-accent);
}

.ebh-char-count {
    font-size: 12px;
    color: var(--ebh-text-muted);
    text-align: right;
    display: block;
    margin-top: 4px;
}

/* Checkbox */
.ebh-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    cursor: pointer;
}

.ebh-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-top: 3px;
    flex-shrink: 0;
}

.ebh-checkbox-label a {
    color: var(--ebh-primary);
    text-decoration: underline;
}

/* Step Footer */
.ebh-step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ebh-border);
}

.ebh-total-price {
    font-size: 14px;
    color: var(--ebh-text-light);
}

.ebh-total-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--ebh-primary);
    display: block;
}

/* Buttons */
.ebh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ebh-transition);
    font-family: inherit;
    text-decoration: none;
}

.ebh-btn-primary {
    background: var(--ebh-primary);
    color: #fff;
}

.ebh-btn-primary:hover {
    background: var(--ebh-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 42, 74, 0.3);
}

.ebh-btn-secondary {
    background: var(--ebh-bg-alt);
    color: var(--ebh-text);
    border: 2px solid var(--ebh-border);
}

.ebh-btn-secondary:hover {
    background: var(--ebh-border);
}

.ebh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Summary */
.ebh-summary {
    background: var(--ebh-bg-alt);
    border-radius: var(--ebh-radius);
    padding: 24px;
    margin-bottom: 28px;
}

.ebh-summary h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: var(--ebh-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.ebh-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--ebh-border);
    font-size: 15px;
}

.ebh-summary-row:last-child {
    border-bottom: none;
}

.ebh-summary-total {
    font-weight: 700;
    font-size: 18px;
    color: var(--ebh-primary);
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--ebh-primary);
    border-bottom: none;
}

/* Payment Methods */
.ebh-payment-methods {
    margin-bottom: 24px;
}

.ebh-payment-methods h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ebh-text-muted);
    margin: 0 0 16px;
}

.ebh-payment-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: var(--ebh-bg);
    border: 2px solid var(--ebh-border);
    border-radius: var(--ebh-radius);
    cursor: pointer;
    transition: var(--ebh-transition);
    text-align: left;
    font-family: inherit;
    margin-bottom: 12px;
}

.ebh-payment-btn:hover {
    border-color: var(--ebh-primary);
    box-shadow: var(--ebh-shadow);
}

.ebh-payment-icon {
    font-size: 28px;
}

.ebh-payment-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--ebh-text);
    display: block;
}

.ebh-payment-sub {
    font-size: 12px;
    color: var(--ebh-text-muted);
    display: block;
}

.ebh-paypal-container {
    margin-top: 12px;
}

/* Loading */
.ebh-loading {
    text-align: center;
    padding: 60px 20px;
}

.ebh-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ebh-border);
    border-top-color: var(--ebh-primary);
    border-radius: 50%;
    animation: ebh-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

/* Success */
.ebh-success {
    text-align: center;
    padding: 40px 20px;
}

.ebh-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.ebh-success h2 {
    color: var(--ebh-success);
    margin: 0 0 12px;
}

.ebh-success p {
    color: var(--ebh-text-light);
    margin: 0 0 24px;
}

.ebh-success-details {
    background: var(--ebh-bg-alt);
    padding: 16px;
    border-radius: var(--ebh-radius);
    margin-bottom: 24px;
    display: inline-block;
}

.ebh-success-details code {
    font-size: 18px;
    font-weight: 700;
    color: var(--ebh-primary);
    letter-spacing: 1px;
}

.ebh-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Notices */
.ebh-notice {
    padding: 16px 20px;
    border-radius: var(--ebh-radius);
    background: var(--ebh-bg-alt);
    border-left: 4px solid var(--ebh-border);
    font-size: 14px;
}

.ebh-notice-warning {
    border-left-color: var(--ebh-accent);
    background: #fff8e1;
}

.ebh-notice-error {
    border-left-color: var(--ebh-danger);
    background: #ffeaea;
}

/* Responsive */
@media (max-width: 600px) {
    .ebh-form-row {
        grid-template-columns: 1fr;
    }
    
    .ebh-flight-cards {
        grid-template-columns: 1fr;
    }
    
    .ebh-step-footer {
        flex-direction: column;
        gap: 16px;
    }
    
    .ebh-progress-step .ebh-step-label {
        font-size: 10px;
    }

    .ebh-success-actions {
        flex-direction: column;
    }
}
