/* Tabak Waldmann Gutscheine - Frontend Styles */

.tw-gutschein-formular {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.tw-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.tw-form-group {
    margin-bottom: 20px;
}

.tw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tw-form-group input[type="text"],
.tw-form-group input[type="email"],
.tw-form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.tw-form-group input:focus {
    outline: none;
    border-color: #2980b9;
}

.tw-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.tw-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tw-col-6 {
    flex: 1;
}

.tw-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.tw-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tw-radio-label {
    display: block;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.tw-radio-label:hover {
    border-color: #2980b9;
    background: #f8f9fa;
}

.tw-radio-label input[type="radio"] {
    margin-right: 10px;
}

.tw-radio-label input[type="radio"]:checked + strong {
    color: #2980b9;
}

.tw-btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tw-btn-primary {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    width: 100%;
}

.tw-btn-primary:hover {
    background: linear-gradient(135deg, #236fa1 0%, #2e86c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.tw-btn-secondary {
    background: #95a5a6;
    color: white;
}

.tw-btn-secondary:hover {
    background: #7f8c8d;
}

.tw-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.tw-alert-error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.tw-success-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.tw-success-icon {
    font-size: 64px;
    color: #27ae60;
    margin-bottom: 20px;
}

.tw-success-box h3 {
    color: #27ae60;
    margin-bottom: 20px;
}

.tw-payment-details {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tw-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tw-payment-row:last-child {
    border-bottom: none;
}

.tw-payment-row.tw-highlight {
    background: #fff9e6;
    padding: 15px;
    margin: 10px -10px;
    border-radius: 6px;
    border: 2px solid #ffc107;
}

.tw-label {
    font-weight: 600;
    color: #555;
}

.tw-value {
    font-family: 'Courier New', monospace;
    color: #333;
}

.tw-reference {
    font-size: 18px;
    font-weight: bold;
    color: #2980b9;
    letter-spacing: 1px;
}

.tw-info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: left;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    #tw-payment-info,
    #tw-payment-info * {
        visibility: visible;
    }
    
    #tw-payment-info {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .tw-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .tw-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tw-payment-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .tw-gutschein-formular {
        padding: 10px;
    }
    
    .tw-form {
        padding: 20px;
    }
}
