/* Gift Certificate Styles */

.gift-cert-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gift-cert-header {
    text-align: center;
    margin-bottom: 30px;
}

.gift-cert-header h1 {
    color: #3B3268;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3B3268;
    outline: none;
}

.quantity-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.price-display {
    font-size: 24px;
    font-weight: bold;
    color: #3B3268;
    text-align: center;
    margin: 15px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.qty-btn {
    background: #3B3268;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

.qty-btn:hover {
    background: #DB2425;
}

.qty-input {
    width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.total-section {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.total-amount {
    font-size: 28px;
    font-weight: bold;
    color: #3B3268;
}

.purchase-btn {
    width: 100%;
    background: #DB2425;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

.purchase-btn:hover {
    background: #54B247;
}

.purchase-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    background: #f8d7da;
    color: #DD280A;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #DD280A;
}

.success-message {
    background: #e8f5e8;
    color: #54B247;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #54B247;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

/* Payment Page Styles */
.payment-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-total {
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.payment-form {
    margin-bottom: 20px;
}

#card-element {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
}

#card-element.StripeElement--focus {
    border-color: #2c5aa0;
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

.pay-button {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.pay-button:hover:not(:disabled) {
    background: #218838;
}

.pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.security-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

/* Success Page Styles */
.success-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-header {
    text-align: center;
    margin-bottom: 30px;
    color: #28a745;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.order-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.certificates-section {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.certificate-code {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 2px dashed #2c5aa0;
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
}

.next-steps {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.button-group {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary:hover {
    background: #DB2425;
    color: white;
}

.btn-secondary:hover {
    background: #DB2425;
    color: white;
}