/* ON. Cadeaubonnen Frontend Styles */

.on-gift-card-form-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.on-gift-card-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .on-gift-card-form-container {
        grid-template-columns: 1fr;
    }
}

/* Left Column - Designs */
.on-gift-card-left-column h3,
.on-gift-card-right-column h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.gift-card-designs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.design-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
    position: relative;
}

.design-option::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: #4CAF50;
    border-radius: 50%;
    display: none;
    z-index: 10;
}

.design-option.active::after {
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-option.active::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="white" d="M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z"/></svg>');
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.design-option:hover {
    transform: translateY(-5px);
}

.design-option.active .design-preview {
    border: 4px solid #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: scale(1.05);
}

.design-option.active span {
    color: #4CAF50;
    font-weight: bold;
}

.design-preview {
    aspect-ratio: 16/10;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.design-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.design-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.design-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

/* Design Variants */
.design-classic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.design-modern {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.design-elegant {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.design-festive {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.design-custom {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.design-option span {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Right Column - Form */
.form-group {
    margin-bottom: 20px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.amount-btn {
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.amount-btn:hover {
    border-color: #4CAF50;
    background: #f0f9f0;
}

.amount-btn.active {
    border-color: #093d32;
    background: #093d32;
    color: white;
}

.custom-amount-input {
    margin-top: 10px;
}

.custom-amount-input input {
    width: 100%;
}

.btn-add-to-cart {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #45a049;
}

.non-refundable-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 20px 0;
}

.non-refundable-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

#form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Balance Checker */
.on-gift-card-balance-checker {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.on-gift-card-balance-checker h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.balance-checker-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.balance-checker-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-check-balance {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-check-balance:hover {
    background: #45a049;
}

#balance-result {
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    display: none;
}

#balance-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#balance-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Checkout Gift Card Field */
.on-gift-card-checkout {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.on-gift-card-checkout h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
}

.on-gift-card-checkout input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    width: 250px;
}

.on-gift-card-checkout button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.on-gift-card-checkout button:hover {
    background: #45a049;
}

#gift_card_message {
    margin-top: 10px;
}
