/* ===========================================
   ZENXNET VPN - COUPON PAGE STYLES
   =========================================== */

/* ============= PAGE LAYOUT ============= */
.coupon-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============= HEADER ============= */
.coupon-header {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 0;
    box-shadow: 0 8px 32px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.coupon-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--zen-primary-solid) !important;
    transition: var(--zen-transition);
}

.brand-logo:hover {
    transform: scale(1.05);
    color: var(--zen-primary-solid) !important;
}

.brand-logo img {
    max-height: 30px;
    margin-right: 0.75rem;
    border-radius: 8px;
    transition: var(--zen-transition);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============= BUTTONS ============= */
.btn-outline-teal {
    border: 2px solid var(--gradient-medium);
    color: var(--gradient-dark);
    background: transparent;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--zen-border-radius);
    font-weight: 600;
    transition: var(--zen-transition);
}

.btn-outline-teal:hover {
    background: var(--gradient-medium);
    color: white;
    transform: translateY(-2px);
    border-color: var(--gradient-medium);
}

/* ============= MAIN CONTENT ============= */
.coupon-wrapper {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 2rem;
    flex: 1;
}

.coupon-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(81, 208, 224, 0.2);
    border-radius: var(--zen-border-radius);
    padding: 3rem;
    box-shadow: 0 15px 40px var(--shadow-light);
}

.coupon-form-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--zen-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

/* ============= COUPON ICON ============= */
.coupon-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.coupon-icon i {
    font-size: 4rem;
    color: var(--gradient-medium);
    opacity: 0.8;
}

/* ============= STEPS INDICATOR ============= */
.steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.step.active {
    color: var(--gradient-dark);
}

.step.completed {
    color: var(--gradient-medium);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-weight: 700;
    transition: var(--zen-transition);
}

.step.active .step-number {
    border-color: var(--gradient-dark);
    background: var(--gradient-dark);
    color: white;
}

.step.completed .step-number {
    border-color: var(--gradient-medium);
    background: var(--gradient-medium);
    color: white;
}

.step + .step::before {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--text-light);
    margin: 0 1rem;
    opacity: 0.3;
}

.step.completed + .step::before {
    background: var(--gradient-medium);
    opacity: 1;
}

/* ============= FORMS ============= */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.form-control.coupon-input {
    border: 2px solid rgba(81, 208, 224, 0.2);
    border-radius: var(--zen-border-radius);
    padding: 1rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--zen-transition);
    margin-bottom: 1.5rem;
}

.form-control.coupon-input:focus {
    border-color: var(--gradient-medium);
    box-shadow: 0 0 0 0.2rem rgba(81, 208, 224, 0.15);
    outline: none;
}

.form-control.coupon-input.is-invalid {
    border-color: #dc3545;
}

.form-control.coupon-input.is-valid {
    border-color: #28a745;
}

.coupon-code-input {
    text-transform: uppercase;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px;
}

.invalid-feedback,
.valid-feedback {
    display: block;
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.invalid-feedback {
    color: #dc3545;
}

.valid-feedback {
    color: #28a745;
}

/* ============= SUBMIT BUTTON ============= */
#submitBtn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============= USER INFO BOX ============= */
.user-info-box {
    background: linear-gradient(135deg, var(--gradient-light), rgba(255, 255, 255, 0.9));
    border-radius: var(--zen-border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(81, 208, 224, 0.2);
}

/* ============= LOADING SPINNER ============= */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============= ALERTS ============= */
.coupon-alert {
    border-radius: var(--zen-border-radius);
    border: none;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.coupon-alert.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.coupon-alert.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.coupon-alert.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* ============= SUCCESS PAGE ============= */
.success-wrapper {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 2rem;
    flex: 1;
}

.success-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(81, 208, 224, 0.2);
    border-radius: var(--zen-border-radius);
    padding: 3rem;
    box-shadow: 0 15px 40px var(--shadow-light);
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: #155724;
    animation: successPulse 2s ease-in-out infinite;
}

.warning-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: #856404;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #155724, #20c997);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.warning-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #856404, #ffc107);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============= COUPON DETAILS ============= */
.coupon-details {
    background: #d4edda;
    border-radius: var(--zen-border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #155724;
    text-align: left;
}

.warning-details {
    background: #fff3cd;
    border-radius: var(--zen-border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #856404;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
}

.detail-value {
    font-weight: 500;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

/* ============= ACTIONS ============= */
.actions-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-success-lg {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    font-weight: 700;
    border: none;
    border-radius: var(--zen-border-radius);
    transition: var(--zen-transition);
}

.btn-success-lg:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
    color: white;
}

/* ============= HELP TEXT ============= */
.help-text {
    background: rgba(81, 208, 224, 0.1);
    border-radius: var(--zen-border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    color: var(--text-dark);
    text-align: left;
}

.help-text h5 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 767px) {
    .coupon-wrapper,
    .success-wrapper {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .coupon-form-container,
    .success-container {
        padding: 2rem 1.5rem;
    }
    
    .coupon-form-container h2 {
        font-size: 1.5rem;
    }
    
    .coupon-icon i {
        font-size: 3rem;
    }
    
    .brand-logo {
        font-size: 1.5rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .coupon-header .container {
        padding: 0 1rem;
    }
    
    .steps-indicator {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .step + .step::before {
        display: none;
    }
    
    .success-title,
    .warning-title {
        font-size: 2rem;
    }
    
    .success-icon,
    .warning-icon {
        font-size: 4rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .secondary-actions {
        flex-direction: column;
        align-items: center;
    }
}
