/* Bangla Checkout Pro - Main Styles */

:root {
    --bc-primary: #4F46E5;
    --bc-button: #10B981;
    --bc-font: 'Hind Siliguri', sans-serif;
    --bc-gray-50: #F9FAFB;
    --bc-gray-100: #F3F4F6;
    --bc-gray-200: #E5E7EB;
    --bc-gray-300: #D1D5DB;
    --bc-gray-600: #4B5563;
    --bc-gray-700: #374151;
    --bc-gray-900: #111827;
    --bc-red: #EF4444;
    --bc-green: #10B981;
    --bc-blue: #3B82F6;
    --bc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bc-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --bc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Container */
.bangla-checkout-container {
    font-family: var(--bc-font);
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.bc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Product Section */
.bc-product-section {
    position: sticky;
    top: 20px;
}

.bc-product-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--bc-shadow-lg);
    border: 1px solid var(--bc-gray-200);
}

.bc-product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bc-gray-100);
}

.bc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bc-product-image:hover img {
    transform: scale(1.05);
}

.bc-product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bc-gray-900);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.bc-product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bc-regular-price {
    font-size: 18px;
    color: var(--bc-gray-600);
    text-decoration: line-through;
}

.bc-sale-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--bc-primary);
}

.bc-discount-badge {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.bc-product-description {
    color: var(--bc-gray-600);
    line-height: 1.6;
    font-size: 15px;
}

/* Form Section */
.bc-form-section {
    /* No sticky, flows naturally */
}

.bc-form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--bc-shadow-lg);
    border: 1px solid var(--bc-gray-200);
}

.bc-form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--bc-gray-900);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bc-gray-200);
}

/* Form Elements */
.bc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bc-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--bc-gray-700);
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: var(--bc-red);
    font-weight: 700;
}

.bc-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--bc-font);
    border: 2px solid var(--bc-gray-300);
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
    color: var(--bc-gray-900);
}

.bc-input:focus {
    outline: none;
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bc-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Quantity Control */
.bc-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.bc-qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--bc-gray-300);
    background: white;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--bc-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-qty-btn:hover {
    background: var(--bc-gray-100);
    border-color: var(--bc-primary);
    color: var(--bc-primary);
}

.bc-qty-input {
    width: 80px !important;
    text-align: center;
    font-weight: 600;
    padding: 12px 8px !important;
}

/* Radio Group */
.bc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bc-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--bc-gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.bc-radio-label:hover {
    border-color: var(--bc-primary);
    background: rgba(79, 70, 229, 0.02);
}

.bc-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--bc-primary);
}

.bc-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--bc-primary);
}

.bc-radio-label span {
    font-size: 15px;
    color: var(--bc-gray-700);
    transition: all 0.2s ease;
}

/* Free Delivery Notice */
.bc-free-delivery-notice {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

/* Order Summary */
.bc-order-summary {
    background: var(--bc-gray-50);
    padding: 20px;
    border-radius: 12px;
    border: 2px dashed var(--bc-gray-300);
}

.bc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: var(--bc-gray-700);
}

.bc-summary-row:not(:last-child) {
    border-bottom: 1px solid var(--bc-gray-300);
}

.bc-total-row {
    font-size: 20px;
    font-weight: 700;
    color: var(--bc-gray-900);
    padding-top: 14px;
    margin-top: 4px;
}

.bc-total-amount {
    color: var(--bc-primary);
    font-size: 28px;
}

/* Submit Button */
.bc-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--bc-font);
    color: white;
    background: linear-gradient(135deg, var(--bc-button) 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.bc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5);
}

.bc-submit-btn:active {
    transform: translateY(0);
}

.bc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message Box */
.bc-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

.bc-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.bc-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #EF4444;
}

/* Responsive Design */
@media (max-width: 968px) {
    .bc-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .bc-product-section {
        position: static;
    }
    
    .bc-product-card {
        padding: 20px;
    }
    
    .bc-form-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .bangla-checkout-container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .bc-product-title {
        font-size: 20px;
    }
    
    .bc-sale-price {
        font-size: 26px;
    }
    
    .bc-form-title {
        font-size: 22px;
    }
    
    .bc-product-card,
    .bc-form-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .bc-submit-btn {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .bc-total-amount {
        font-size: 24px;
    }
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.bc-btn-loader {
    animation: spin 1s linear infinite;
}

/* Select Styling */
select.bc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%234B5563' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
