/* Public Website Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0a4241;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.main-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: #0a4241;
    color: white;
    /* padding: 30px 0; */
    text-align: center;
    border-bottom: 2px solid #cfa44f;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

.main-header .container img{
    width: 350px;
}

.main-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.main-header .tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 20px;
    background: #d0e7d5;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.hero img {
    width: 50%;
    border-radius: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #666;
}

/* Vouchers Grid */
.vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.voucher-card {
    background: #d0e7d5;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #cfa44f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.voucher-header {
    border-bottom: 2px solid #0a4241;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.voucher-header h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.voucher-price {
    font-size: 2em;
    color: #0a4241;
    font-weight: bold;
    text-align: center;
}

.voucher-description {
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.voucher-footer {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #be8b2f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn:hover {
    background: #bd8929;
}

.btn-primary {
    background: #be8b2f;
}

.btn-primary:hover {
    background: #bd8929;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Forms */
.purchase-page {
    max-width: 800px;
    margin: 30px auto;
}

.purchase-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.purchase-summary h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.summary-amount {
    font-size: 2em;
    color: #0a4241;
    margin: 20px 0;
}

.purchase-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Payment Result */
.payment-result {
    max-width: 700px;
    margin: 30px auto;
    background: #d0e7d5;
    padding: 40px;
    color: #0a4241;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.success-message h2,
.error-message h2,
.warning-message h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
    text-align: left;
}

.summary-table {
    width: 100%;
}

.summary-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.summary-table td:first-child {
    width: 40%;
}

.action-buttons {
    margin-top: 30px;
}

.action-buttons .btn {
    margin: 0 10px;
}

/* Verification Page */
.verification-page {
    max-width: 700px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.voucher-header-info h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.voucher-code-display {
    margin: 20px 0;
    font-size: 1.2em;
}

.voucher-code-display code {
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    color: #667eea;
}

.status-badge {
    text-align: center;
    margin: 30px 0;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px 0;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-error {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.used-date {
    margin-top: 10px;
    color: #666;
}

.voucher-info-table {
    width: 100%;
    margin: 30px 0;
}

.voucher-info-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.voucher-info-table td:first-child {
    width: 40%;
    font-weight: bold;
}

.mark-used-form {
    margin-top: 30px;
    text-align: center;
}

/* Footer */
.main-footer {
    background: #0a4241;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 2px solid #cfa44f;
}

.no-vouchers {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-option-label {
    color: #667eea;
}

.payment-option input[type="radio"]:checked ~ .payment-option-label,
.payment-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Fallback for browsers without :has() support */
.payment-option input[type="radio"]:checked {
    accent-color: #667eea;
}

.payment-option-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-option-label strong {
    font-size: 1.1em;
    color: #333;
}

.payment-option-label small {
    color: #666;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .vouchers-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header h1 {
        font-size: 2em;
    }
    
    .hero h2 {
        font-size: 2em;
    }

    .hero img {
        width: 80%;
    }
}

