/**
 * 1515 Direct Checkout Frontend Styles
 * Color Scheme: Dark Blue + Gradient Blue + Green
 */

/* Main Wrapper - Minimalistic and Sophisticated */
#dc1515-checkout-wrapper {
    max-width: 100%;
    margin: 30px 0;
    font-family: 'SolaimanLipi', 'Kalpurush', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 50%, #dce5f0 100%);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Product Banner - Beautiful Minimalistic */
.dc1515-product-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.dc1515-banner-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    animation: dc1515-banner-shine 3s infinite;
}

@keyframes dc1515-banner-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.dc1515-banner-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* Special Offer Box - Dark Blue Gradient */
.dc1515-offer-box {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
    border: 3px solid #0d47a1;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
    position: relative;
    overflow: hidden;
}

.dc1515-offer-box::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: dc1515-shine 3s infinite;
}

@keyframes dc1515-shine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.dc1515-offer-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.dc1515-offer-text {
    font-size: 17px;
    line-height: 1.7;
    color: #e3f2fd;
    margin: 0;
    position: relative;
    z-index: 1;
}

.dc1515-offer-sparkle {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #ffd54f;
    margin-top: 8px;
    animation: dc1515-sparkle 2s infinite;
}

@keyframes dc1515-sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Form Container - Dark Blue Background */
.dc1515-form-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3f5568 100%);
    border: 3px solid #1a252f;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

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

/* Labels */
.dc1515-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.required {
    color: #ffeb3b;
    font-weight: 700;
}

/* Select Inputs */
.dc1515-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #42a5f5;
    border-radius: 8px;
    background: #ffffff;
    color: #01579b;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Fix mobile overflow */
}

.dc1515-select::placeholder {
    color: #757575;
    opacity: 1;
}

.dc1515-select:hover {
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.dc1515-select:focus {
    outline: none;
    border-color: #90caf9;
    box-shadow: 0 0 0 3px rgba(144, 202, 249, 0.3);
    background: #e3f2fd;
}

/* Text Inputs */
.dc1515-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #42a5f5;
    border-radius: 8px;
    background: #ffffff;
    color: #01579b;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Fix mobile overflow */
}

.dc1515-input::placeholder {
    color: #757575;
    opacity: 1;
}

.dc1515-input:hover {
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.dc1515-input:focus {
    outline: none;
    border-color: #90caf9;
    box-shadow: 0 0 0 3px rgba(144, 202, 249, 0.3);
    background: #e3f2fd;
}

/* Textarea */
.dc1515-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #42a5f5;
    border-radius: 8px;
    background: #ffffff;
    color: #01579b;
    resize: vertical;
    min-height: 90px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Fix mobile overflow */
}

.dc1515-textarea::placeholder {
    color: #757575;
    opacity: 1;
}

.dc1515-textarea:hover {
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.dc1515-textarea:focus {
    outline: none;
    border-color: #90caf9;
    box-shadow: 0 0 0 3px rgba(144, 202, 249, 0.3);
    background: #e3f2fd;
}

/* Divider */
.dc1515-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #64b5f6, transparent);
    margin: 25px 0;
}

/* Section Title */
.dc1515-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #64b5f6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Price Summary */
.dc1515-price-summary {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    border: 3px solid #0d47a1;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.4);
}

.dc1515-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 17px;
    color: #e3f2fd;
}

.dc1515-total-row {
    border-top: 2px solid #64b5f6;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    color: #ffffff;
}

#dc1515-product-price,
#dc1515-delivery-charge,
#dc1515-total-price {
    font-weight: 700;
    color: #ffffff;
}

/* Green Instruction Banner */
.dc1515-instruction-banner {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 50%, #81c784 100%);
    border: 3px solid #2e7d32;
    border-radius: 12px;
    padding: 18px 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.dc1515-instruction-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: dc1515-slide 3s infinite;
}

@keyframes dc1515-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dc1515-instruction-banner p {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Buy Now Button - Enhanced Green with Pulse Effect */
.dc1515-button-wrapper {
    text-align: center;
    margin: 25px 0;
}

.dc1515-buy-now-button {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 50%, #2e7d32 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: none;
    position: relative;
    overflow: hidden;
    animation: dc1515-pulse 2s infinite;
}

@keyframes dc1515-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(46, 125, 50, 0.6);
        transform: scale(1.02);
    }
}

.dc1515-buy-now-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.dc1515-buy-now-button:hover::before {
    width: 300px;
    height: 300px;
}

.dc1515-buy-now-button:hover {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 50%, #1b5e20 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.5);
    animation: none;
}

.dc1515-buy-now-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.dc1515-btn-icon {
    font-size: 26px;
    position: relative;
    z-index: 1;
}

.dc1515-buy-now-button span {
    position: relative;
    z-index: 1;
}

/* Loading Overlay */
#dc1515-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#dc1515-loading p {
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
    margin-top: 20px;
}

/* Spinner */
.dc1515-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #66bb6a;
    border-radius: 50%;
    animation: dc1515-spin 1s linear infinite;
}

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

/* Error Message */
#dc1515-error-message {
    background: #ffebee;
    border: 2px solid #ef5350;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #c62828;
    font-size: 16px;
    font-weight: 600;
}

/* Age Confirmation Banner */
#dc1515-age-confirmation {
    background: linear-gradient(135deg, #37474f 0%, #455a64 50%, #546e7a 100%);
    border: 3px solid #263238;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    box-shadow: 0 6px 20px rgba(38, 50, 56, 0.4);
    position: relative;
    overflow: hidden;
}

#dc1515-age-confirmation::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffeb3b, #ffc107, #ff9800, #ffeb3b);
    background-size: 300% 300%;
    animation: dc1515-border-glow 3s ease infinite;
    border-radius: 12px;
    z-index: -1;
}

@keyframes dc1515-border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#dc1515-age-confirmation p {
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#dc1515-age-confirmation strong {
    color: #ffeb3b;
    font-size: 17px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #dc1515-checkout-wrapper {
        padding: 20px 15px;
    }
    
    .dc1515-product-banner {
        padding: 20px 15px;
    }
    
    .dc1515-banner-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .dc1515-form-container {
        padding: 20px;
    }
    
    .dc1515-offer-title {
        font-size: 24px;
    }
    
    .dc1515-offer-text {
        font-size: 16px;
    }
    
    .dc1515-buy-now-button {
        width: 100%;
        padding: 18px 30px;
        font-size: 19px;
    }
    
    .dc1515-label {
        font-size: 16px;
    }
    
    .dc1515-select,
    .dc1515-input,
    .dc1515-textarea {
        font-size: 16px;
        padding: 13px 15px;
    }
    
    .dc1515-price-row {
        font-size: 16px;
    }
    
    .dc1515-total-row {
        font-size: 19px;
    }
    
    .dc1515-instruction-banner p {
        font-size: 16px;
    }
    
    #dc1515-age-confirmation {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #dc1515-checkout-wrapper {
        padding: 15px 10px;
    }
    
    .dc1515-product-banner {
        padding: 15px 10px;
    }
    
    .dc1515-banner-title {
        font-size: 14px;
    }
    
    .dc1515-offer-box {
        padding: 15px;
    }
    
    .dc1515-form-container {
        padding: 20px 15px; /* Better mobile padding */
    }
    
    .dc1515-select,
    .dc1515-input,
    .dc1515-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 14px; /* Slightly smaller padding on mobile */
    }
    
    .dc1515-offer-title {
        font-size: 22px;
    }
    
    .dc1515-buy-now-button {
        font-size: 18px;
        padding: 16px 25px;
    }
}

/* Print Styles */
@media print {
    #dc1515-checkout-wrapper {
        display: none;
    }
}
