/* FGG Form Styles — Flora's Golden Garden */
* { box-sizing: border-box; }

.fgg-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 520px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.fgg-header {
    background: linear-gradient(135deg, #2d3a2d, #1a2e1a);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}

.fgg-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #8B6914;
}

.fgg-header p {
    font-size: 14px;
    opacity: 0.85;
}

.fgg-course-details {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 13px;
    text-align: left;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.fgg-course-details span {
    display: block;
}

.fgg-body {
    padding: 28px 32px;
}

.fgg-field {
    margin-bottom: 18px;
}

.fgg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.fgg-field input,
.fgg-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fafafa;
}

.fgg-field input:focus,
.fgg-field select:focus {
    outline: none;
    border-color: #8B6914;
    background: #fff;
}

/* Discount code row */
.fgg-discount-row {
    display: flex;
    gap: 8px;
}

.fgg-discount-row input {
    flex: 1;
}

.fgg-btn-discount {
    padding: 11px 18px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.fgg-btn-discount:hover {
    background: #333;
}

.fgg-discount-status {
    margin-top: 6px;
    font-size: 13px;
    min-height: 18px;
}

.fgg-discount-status.success {
    color: #4e6e3a;
}

.fgg-discount-status.error {
    color: #a04030;
}

/* Notice */
.fgg-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #8d6e00;
    text-align: center;
    margin-bottom: 12px;
}

/* Price box */
.fgg-price-box {
    background: #fdf8f0;
    border: 1px solid #d4a96a;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.fgg-price-box .price {
    font-size: 28px;
    font-weight: 700;
    color: #8B6914;
}

.fgg-price-box .price-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.fgg-discount-info {
    margin-top: 8px;
}

.fgg-original-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.fgg-discount-badge {
    font-size: 13px;
    background: #4e6e3a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Submit button */
.fgg-btn {
    width: 100%;
    padding: 14px;
    background: #6B4423;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.fgg-btn:hover {
    background: #8B6914;
}

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

/* Payment page */
.fgg-payment {
    display: none;
}

.fgg-payment.active {
    display: block;
}

.fgg-form.hidden {
    display: none;
}

.fgg-payment-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.fgg-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

.fgg-payment-row .label {
    color: #666;
}

.fgg-payment-row .value {
    font-weight: 600;
    color: #333;
}

.fgg-qr-section {
    text-align: center;
    margin: 24px 0;
}

.fgg-qr-section canvas {
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
}

.fgg-qr-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.fgg-success-note {
    background: #f0f7ec;
    border: 1px solid #b5d6a0;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #4e6e3a;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.fgg-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #6B4423;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.fgg-back-link:hover {
    color: #8B6914;
}

.fgg-gdpr {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* Voucher form */
.fgg-voucher-wrapper .fgg-header {
    background: linear-gradient(135deg, #2d3a2d, #1a2e1a);
}

.fgg-voucher-wrapper .fgg-header p {
    opacity: 0.9;
}

.fgg-voucher-wrapper .fgg-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fafafa;
    cursor: pointer;
    appearance: auto;
}

.fgg-voucher-wrapper .fgg-field select:focus {
    outline: none;
    border-color: #8B6914;
    background: #fff;
}

/* Voucher amount field */
.fgg-voucher-amount-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Loading spinner */
.fgg-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #8B6914;
    border-radius: 50%;
    animation: fgg-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

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