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

/* Main Wrapper - Minimalistic and Sophisticated */
#abdc-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);
    box-sizing: border-box;
}

/* Ensure all child elements use border-box */
#abdc-checkout-wrapper * {
    box-sizing: border-box;
}

/* Product Banner - Beautiful Minimalistic */
.abdc-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);
}

.abdc-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: abdc-banner-shine 3s infinite;
}

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

.abdc-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 */
.abdc-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;
}

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

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

.abdc-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;
}

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

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

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

/* Form Container - Dark Blue Background */
.abdc-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 */
.abdc-form-group {
    margin-bottom: 20px;
}

/* Labels */
.abdc-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 */
.abdc-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;
}

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

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

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

/* Text Inputs */
.abdc-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;
}

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

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

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

/* Textarea */
.abdc-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;
}

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

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

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

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

/* Section Title */
.abdc-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 */
.abdc-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);
}

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

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

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

/* Green Instruction Banner */
.abdc-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;
}

.abdc-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: abdc-slide 3s infinite;
}

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

.abdc-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 */
.abdc-button-wrapper {
    text-align: center;
    margin: 25px 0;
}

.abdc-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: abdc-pulse 2s infinite;
}

@keyframes abdc-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);
    }
}

.abdc-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;
}

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

.abdc-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;
}

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

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

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

/* Loading Overlay */
#abdc-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;
}

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

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

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

/* Error Message */
#abdc-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 */
#abdc-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;
}

#abdc-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: abdc-border-glow 3s ease infinite;
    border-radius: 12px;
    z-index: -1;
}

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

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

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

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

@media (max-width: 480px) {
    #abdc-checkout-wrapper {
        padding: 15px 10px;
    }
    
    .abdc-product-banner {
        padding: 15px 10px;
    }
    
    .abdc-banner-title {
        font-size: 14px;
    }
    
    .abdc-offer-box {
        padding: 15px;
    }
    
    .abdc-form-container {
        padding: 15px;
    }
    
    .abdc-offer-title {
        font-size: 22px;
    }
    
    .abdc-buy-now-button {
        font-size: 18px;
        padding: 16px 25px;
        width: 100%;
    }
    
    /* Additional mobile fixes */
    .abdc-top-banner {
        padding: 15px 10px;
    }
    
    .abdc-next-step-banner {
        padding: 15px 10px;
    }
    
    .abdc-next-step-banner p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .abdc-offer-text {
        font-size: 15px;
        line-height: 1.5;
    }
}
    }
    
    .abdc-buy-now-button {
        font-size: 18px;
        padding: 16px 25px;
    }
}

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

/* ========================================
   ANTI BLU SPECIFIC STYLES
   ======================================== */

/* Ensure text doesn't overflow */
.abdc-top-banner-title,
.abdc-offer-text,
.abdc-next-step-banner p,
.abdc-instruction-banner p,
.abdc-label,
.abdc-radio-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Top Animated Banner - Luxury Professional */
.abdc-top-banner {
    background: linear-gradient(135deg, #00695c 0%, #00897b 50%, #26a69a 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 105, 92, 0.4);
}

.abdc-banner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: abdc-glow 4s ease-in-out infinite;
}

@keyframes abdc-glow {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.8;
    }
}

.abdc-top-banner-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    line-height: 1.5;
    animation: abdc-text-glow 2s ease-in-out infinite alternate;
}

@keyframes abdc-text-glow {
    0% {
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

/* Next Step Banner */
.abdc-next-step-banner {
    background: linear-gradient(135deg, #00897b 0%, #26a69a 50%, #4db6ac 100%);
    border: 3px solid #00695c;
    border-radius: 12px;
    padding: 18px 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.3);
}

.abdc-next-step-banner p {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Model Selector - Radio Buttons */
.abdc-model-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.abdc-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #00897b 0%, #26a69a 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.3);
    min-width: 100px;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

.abdc-radio-label:hover {
    background: linear-gradient(135deg, #26a69a 0%, #4db6ac 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 137, 123, 0.4);
}

.abdc-radio {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.abdc-radio-text {
    font-weight: 700;
    font-size: 16px;
}

/* Model Price in Yellow */
.abdc-model-price {
    color: #FFD700;
    font-weight: 800;
    margin-left: 8px;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Model Image Container */
.abdc-model-image-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#abdc-model-image {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#abdc-model-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Buy Now Button - Enhanced with Total Price Display */
#abdc-btn-text {
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

/* Responsive - Anti BLU Specific */
@media (max-width: 768px) {
    .abdc-top-banner-title {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .abdc-model-selector {
        gap: 10px;
    }
    
    .abdc-radio-label {
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .abdc-radio-text {
        font-size: 14px;
    }
    
    .abdc-model-price {
        font-size: 14px;
        margin-left: 5px;
    }
    
    .abdc-next-step-banner p {
        font-size: 18px;
    }
    
    .abdc-offer-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .abdc-top-banner-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .abdc-model-selector {
        gap: 8px;
    }
    
    .abdc-radio-label {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .abdc-radio-text {
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .abdc-model-price {
        font-size: 15px;
        margin-left: 0;
    }
    
    #abdc-model-image {
        max-width: 250px;
    }
    
    .abdc-next-step-banner p {
        font-size: 17px;
    }
    
    .abdc-offer-text {
        font-size: 17px;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    #abdc-checkout-wrapper {
        padding: 12px 8px;
        margin: 15px 0;
    }
    
    .abdc-top-banner {
        padding: 12px 8px;
        margin-bottom: 15px;
    }
    
    .abdc-top-banner-title {
        font-size: 13px;
        letter-spacing: 0.3px;
        line-height: 1.4;
    }
    
    .abdc-offer-box {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .abdc-offer-text {
        font-size: 16px;
    }
    
    .abdc-next-step-banner {
        padding: 12px 8px;
        margin-bottom: 15px;
    }
    
    .abdc-next-step-banner p {
        font-size: 16px;
    }
    
    .abdc-form-container {
        padding: 12px;
    }
    
    .abdc-model-selector {
        gap: 6px;
    }
    
    .abdc-radio-label {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .abdc-radio-text {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .abdc-model-price {
        font-size: 14px;
        margin-left: 0;
    }
    
    .abdc-buy-now-button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    #abdc-btn-text {
        font-size: 16px;
    }
}
