/* Widget Styles */
.discount-widget {
    position: fixed;
    left: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 0;
    z-index: 1000;
    transition: left 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.discount-widget.visible {
    left: 0;
}

.widget-tab {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    background: linear-gradient(135deg, #cb4f02 0%, #cb4f02 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
}

.widget-content {
    padding: 20px;
}

.widget-header {
    background: linear-gradient(135deg, #4338ca 0%, #4338ca 100%);
    color: white;
    padding: 15px;
    border-radius: 0 8px 0 0;
}

.widget-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.widget-header p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.discount-form {
    margin-top: 15px;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4338ca 0%, #4338ca 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    opacity: 0.9;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.thank-you {
    display: none;
    text-align: center;
    padding: 20px;
}

.thank-you h3 {
    color: #2b5876;
    font-size: 1.5rem;
}

.thank-you p {
    color: #555;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.3s ease-out forwards;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .discount-widget {
        width: 300px;
        left: -300px;
    }
}