/**
 * TheFundingFutures Checkout Styles
 * Modern, responsive CSS for TheFundingFutures challenge checkout interface
 */

/* Reset and Base Styles */
.fundingpips-checkout-container * {
    box-sizing: border-box;
}

.fundingpips-checkout-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.fundingpips-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fundingpips-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: center;
}

/* Main Content Layout */
.fundingpips-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: start;
    min-height: calc(100vh - 140px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Configuration Column */
.fundingpips-config-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    height: 100%;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Summary Column */
.fundingpips-summary-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.fundingpips-section {
    padding: 25px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fundingpips-section:last-child {
    border-bottom: none;
}

.fundingpips-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.fundingpips-description {
    color: #718096;
    font-size: 0.9rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Radio Button Styles */
.fundingpips-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.fundingpips-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fundingpips-radio-label:hover {
    border-color: #0BA5EC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

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

.fundingpips-radio-label input[type="radio"]:checked + .radio-custom {
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
    border-color: #0BA5EC;
}

.fundingpips-radio-label input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.fundingpips-radio-label input[type="radio"]:checked ~ .radio-text {
    color: #0BA5EC;
    font-weight: 600;
}

.fundingpips-radio-label:has(input[type="radio"]:checked) {
    border-color: #0BA5EC;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
}

/* Summary Card Styles - Enhanced */
.fundingpips-summary-card {
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(11, 165, 236, 0.1);
    backdrop-filter: blur(10px);
}

.fundingpips-summary-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 30px 0;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.fundingpips-summary-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
}

.fundingpips-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fundingpips-summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 600;
}

.summary-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 700;
}

.fundingpips-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 20px 0;
}

/* Price Summary Styles */
.fundingpips-price-summary {
    margin: 20px 0;
}

.fundingpips-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.fundingpips-price-item.total-price {
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.price-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.price-value {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
}

.price-value.original-price {
    text-decoration: line-through;
    color: #a0aec0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.price-value.discount-amount {
    color: #38a169;
    font-weight: 600;
}

.fundingpips-price-item.total-price .price-value {
    color: #0BA5EC;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Coupon Section */
.fundingpips-coupon-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.fundingpips-coupon-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.fundingpips-coupon-input {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.fundingpips-coupon-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.fundingpips-coupon-input input:focus {
    outline: none;
    border-color: #0BA5EC;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fundingpips-btn-secondary {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fundingpips-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fundingpips-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fundingpips-coupon-message {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-weight: 500;
}

.fundingpips-coupon-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.fundingpips-coupon-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Primary Button - Enhanced Styling */
.fundingpips-btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(11, 165, 236, 0.3);
}

.fundingpips-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.fundingpips-btn-primary:hover::before {
    left: 100%;
}

.fundingpips-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 165, 236, 0.4);
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
}

.fundingpips-btn-primary:active {
    transform: translateY(-1px);
}

.fundingpips-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(11, 165, 236, 0.2);
}

/* Payment Info */
.fundingpips-payment-info {
    margin-top: 20px;
    text-align: center;
}

.fundingpips-payment-info p {
    font-size: 0.8rem;
    color: #a0aec0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fundingpips-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .fundingpips-config-column,
    .fundingpips-summary-column {
        border-radius: 20px;
    }
    
    .fundingpips-summary-column {
        position: static;
        height: auto;
    }
}

@media (max-width: 768px) {
    .fundingpips-header {
        padding: 30px 20px;
    }
    
    .fundingpips-header h1 {
        font-size: 2rem;
    }
    
    .fundingpips-section {
        padding: 20px;
    }
    
    .fundingpips-radio-group {
        grid-template-columns: 1fr;
    }
    
    .fundingpips-summary-card {
        padding: 20px;
    }
    
    .fundingpips-main-content {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .fundingpips-header h1 {
        font-size: 1.8rem;
    }
    
    .fundingpips-section {
        padding: 15px;
    }
    
    .fundingpips-summary-card {
        padding: 15px;
    }
    
    .fundingpips-coupon-input {
        flex-direction: column;
    }
    
    .fundingpips-btn-secondary {
        width: 100%;
    }
}

/* Loading States */
.fundingpips-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Animations */
.fundingpips-checkout-container * {
    transition: all 0.3s ease;
}

/* Focus States */
.fundingpips-radio-label:focus-within {
    outline: 2px solid #0BA5EC;
    outline-offset: 2px;
}

/* Custom Scrollbar */
.fundingpips-summary-column::-webkit-scrollbar {
    width: 6px;
}

.fundingpips-summary-column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fundingpips-summary-column::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
    border-radius: 3px;
}

.fundingpips-summary-column::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0BA5EC 0%, #007BB4 100%);
}