/* Arwin Discount Popup Styles */

.arwin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.arwin-popup-overlay.show {
    display: flex;
}

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

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

.arwin-popup-container {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.arwin-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    z-index: 10;
}

.arwin-popup-close:hover {
    color: #333;
}

.arwin-popup-content {
    padding: 50px 30px 30px;
    text-align: center;
}

.arwin-popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 5px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.arwin-popup-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px;
    font-weight: 400;
}

.arwin-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.arwin-popup-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
}

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

.arwin-popup-form input::placeholder {
    color: #999;
}

.arwin-popup-btn {
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.arwin-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
}

.arwin-popup-btn:active {
    transform: translateY(0);
}

.arwin-popup-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.arwin-popup-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    animation: slideUp 0.3s ease-out;
}

.arwin-popup-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.arwin-popup-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.arwin-popup-footer {
    font-size: 12px;
    color: #999;
    margin: 0;
    margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .arwin-popup-container {
        max-width: 95%;
        border-radius: 16px;
    }
    
    .arwin-popup-content {
        padding: 40px 20px 20px;
    }
    
    .arwin-popup-title {
        font-size: 26px;
    }
    
    .arwin-popup-subtitle {
        font-size: 14px;
    }
}

/* Loading state */
.arwin-popup-btn.loading {
    position: relative;
    color: transparent;
}

.arwin-popup-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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