/**
 * Form Voucher Booth Styles
 */

.fvb-form-container {
    max-width: 600px;
    margin: 0 auto;
}


/* Form Groups */
.fvb-form-group {
    margin-bottom: 20px;
}

.fvb-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Input Fields */
.fvb-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fvb-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.fvb-input::placeholder {
    color: #999;
}

/* Radio Buttons */
.fvb-radio-group {
    display: flex;
    gap: 20px;
}

.fvb-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.fvb-radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.fvb-radio-text {
    color: #666;
    font-weight: 500;
}

.fvb-radio-label input[type="radio"]:checked + .fvb-radio-text {
    color: #4CAF50;
    font-weight: 600;
}

/* Customer Box */
.fvb-customer-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
	position: relative;
}
span.area-opsi {
    position: absolute;
    top: -10px;
    font-size: 10px;
    background: #e0e0e0;
    padding: 2px 15px;
    border-radius: 5px;
}

/* Help Text */
.fvb-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Code Status */
.fvb-code-status {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
}

.fvb-code-status.available {
    color: #4CAF50;
}

.fvb-code-status.unavailable {
    color: #f44336;
}

/* Submit Button */
.fvb-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #f44336;
    color: #ffffff;
    border: 2px solid #f44336;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fvb-submit-btn:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.fvb-submit-btn:active {
    transform: translateY(0);
}

.fvb-submit-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fvb-btn-text,
.fvb-btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Spinner Animation */
.fvb-spinner {
    animation: fvb-rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.fvb-spinner-path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: fvb-dash 1.5s ease-in-out infinite;
}

@keyframes fvb-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fvb-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Message Container */
.fvb-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.fvb-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4CAF50;
}

.fvb-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Hidden Fields */
.fvb-hidden-fields {
    display: none;
}

/* Input validation states */
.fvb-input.error {
    border-color: #f44336;
}

.fvb-input.success {
    border-color: #4CAF50;
}

/* Loading state for form */
.fvb-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success Modal */
.fvb-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.fvb-modal-overlay.active {
    display: flex;
}

.fvb-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.fvb-modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.fvb-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.fvb-modal-code {
    display: inline-block;
    font-size: 32px;
    font-weight: bold;
    color: #F44336;
    letter-spacing: 3px;
    padding: 5px 30px;
    background: #f8f9fa;
    border-radius: 40px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px dashed;
}

.fvb-modal-code:hover {
    background: #F44336;
    color: #ffffff;
    border-color: #F44336;
    transform: scale(1.05);
}

.fvb-modal-hint {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
}

.fvb-modal-button {
    background: #F44336 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 40px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
}

.fvb-modal-button:hover {
    background: #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
