/* Amazon Survey Plugin - Public Styles */

.asp-survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: #333;
    position: relative;
    overflow: hidden;
}

.asp-survey-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Progress Bar */
.asp-progress-container {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.asp-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.asp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 20px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.asp-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.asp-progress-text {
    text-align: center;
    margin-top: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Survey Title */
.asp-survey-title {
    text-align: center;
    margin-bottom: 30px;
}

.asp-survey-title h2 {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3); }
}

/* Steps */
.asp-step {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.asp-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.asp-step.asp-active {
    display: block;
}

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

.asp-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.asp-step-header h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    position: relative;
}

.asp-step-header h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.asp-step-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Forms */
.asp-form {
    max-width: 600px;
    margin: 0 auto;
}

.asp-form-group {
    margin-bottom: 25px;
    position: relative;
}

.asp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.asp-form-group input,
.asp-form-group select,
.asp-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fff;
}

.asp-form-group input:focus,
.asp-form-group select:focus,
.asp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.asp-form-group input:hover,
.asp-form-group select:hover,
.asp-form-group textarea:hover {
    border-color: #667eea;
}

.asp-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Radio Groups */
.asp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.asp-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.asp-radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.asp-radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.asp-radio-label:hover::before {
    left: 100%;
}

.asp-radio-label input[type="radio"] {
    display: none;
}

.asp-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.asp-radio-label input[type="radio"]:checked + .asp-radio-custom {
    border-color: #667eea;
    background: #667eea;
    transform: scale(1.1);
}

.asp-radio-label input[type="radio"]:checked + .asp-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: radioCheck 0.3s ease;
}

@keyframes radioCheck {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Buttons */
.asp-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.asp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.asp-btn:hover::before {
    width: 300px;
    height: 300px;
}

.asp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.asp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.asp-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.asp-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.asp-btn-share {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    color: white;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.asp-btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.asp-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Sharing Section */
.asp-sharing-container {
    text-align: center;
}

.asp-share-message {
    margin-bottom: 30px;
}

.asp-share-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
    position: relative;
    overflow: hidden;
}

.asp-share-text::before {
    content: '📢';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    opacity: 0.3;
}

.asp-share-counter {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    display: inline-block;
}

/* Congratulations */
.asp-congratulations {
    text-align: center;
}

.asp-congrats-header h2 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 10px;
    animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.asp-congrats-header p {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

/* Prize Card */
.asp-prize-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.asp-prize-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 4s linear infinite;
    pointer-events: none;
}

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

.asp-prize-image {
    position: relative;
    z-index: 1;
}

.asp-prize-image img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.asp-prize-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.asp-prize-details {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.asp-prize-details h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.asp-prize-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.asp-prize-details li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
}

.asp-prize-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.asp-prize-details li:hover {
    color: #333;
}

.asp-prize-value {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    display: inline-block;
}

/* Shipping Form */
.asp-shipping-form {
    margin-top: 30px;
    text-align: left;
}

.asp-shipping-form h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* Payment Section */
.asp-payment-container {
    text-align: center;
}

.asp-timer-container {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.asp-timer-container::before {
    content: '⏰';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    opacity: 0.3;
}

.asp-timer {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.asp-payment-methods {
    margin: 30px 0;
}

.asp-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.asp-payment-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.asp-payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.asp-payment-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.asp-payment-option:hover::before {
    left: 100%;
}

.asp-payment-option input[type="radio"] {
    display: none;
}

.asp-payment-option input[type="radio"]:checked + .asp-payment-logo {
    color: #667eea;
    font-weight: bold;
}

.asp-payment-logo {
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Already Participated */
.asp-already-participated {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease;
}

.asp-already-participated.asp-verified {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.asp-already-participated h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.asp-already-participated p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Loading */
.asp-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.asp-loading.asp-active {
    display: flex;
}

.asp-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.asp-loading p {
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Success Message */
.asp-success-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 15px;
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.asp-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite alternate;
}

.asp-success-message h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.asp-success-message p {
    font-size: 18px;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .asp-survey-container {
        margin: 10px;
        padding: 15px;
    }
    
    .asp-step {
        padding: 20px;
    }
    
    .asp-survey-title h2 {
        font-size: 24px;
    }
    
    .asp-prize-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .asp-prize-image img {
        max-width: 150px;
    }
    
    .asp-payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .asp-timer {
        font-size: 36px;
    }
    
    .asp-congrats-header h2 {
        font-size: 28px;
    }
    
    .asp-radio-group {
        gap: 12px;
    }
    
    .asp-radio-label {
        padding: 12px;
    }
    
    .asp-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .asp-form-group input,
    .asp-form-group select,
    .asp-form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .asp-survey-container {
        margin: 5px;
        padding: 10px;
    }
    
    .asp-step {
        padding: 15px;
    }
    
    .asp-survey-title h2 {
        font-size: 20px;
    }
    
    .asp-payment-options {
        grid-template-columns: 1fr;
    }
    
    .asp-radio-group {
        gap: 10px;
    }
    
    .asp-radio-label {
        padding: 10px;
        font-size: 14px;
    }
    
    .asp-timer {
        font-size: 28px;
    }
    
    .asp-prize-card {
        padding: 20px;
    }
    
    .asp-prize-details h3 {
        font-size: 20px;
    }
    
    .asp-prize-details li {
        font-size: 14px;
    }
    
    .asp-congrats-header h2 {
        font-size: 24px;
    }
    
    .asp-step-header h3 {
        font-size: 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .asp-survey-container {
        background: #000;
        color: #fff;
    }
    
    .asp-step {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .asp-btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



.asp-payment-account-info {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    color: #004085;
}

.asp-payment-account-info .account-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}


