/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.checkout-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.checkout-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #333333;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.1rem;
    color: #666666;
}

/* Selected Package Section */
.selected-package {
    background: linear-gradient(135deg, #ff006e, #00ffff);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.selected-package h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.package-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-details h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.package-details p {
    font-size: 1rem;
    opacity: 0.9;
}

.package-price {
    font-size: 2rem;
    font-weight: 800;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: #999999;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1.1rem;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 45px;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666666;
}

/* Device Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.device-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    text-align: center;
}

.device-option:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
}

.device-option.selected {
    border-color: #ff006e;
    background: rgba(255, 0, 110, 0.1);
}

.device-option i {
    font-size: 2rem;
    color: #666666;
    margin-bottom: 10px;
}

.device-option.selected i {
    color: #ff006e;
}

.device-option span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
}

.device-option.selected span {
    color: #ff006e;
    font-weight: 600;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #333333;
    padding: 15px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #00ffff;
}

.checkbox-label:hover input[type="checkbox"] {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff006e, #00ffff);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
}

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

/* WhatsApp Chat Button */
.whatsapp-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

.whatsapp-chat-button i {
    font-size: 24px;
}

.chat-text {
    white-space: nowrap;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .whatsapp-chat-button {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .whatsapp-chat-button i {
        font-size: 20px;
    }
    
    .chat-text {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .checkout-form {
        padding: 25px;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .package-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .package-price {
        font-size: 1.8rem;
    }
    
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .device-option {
        padding: 15px 10px;
    }
    
    .device-option i {
        font-size: 1.5rem;
    }
    
    .device-option span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .checkout-form {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .device-grid {
        grid-template-columns: 1fr;
    }
    
    .device-option {
        flex-direction: row;
        text-align: left;
        padding: 15px;
    }
    
    .device-option i {
        margin-right: 15px;
        margin-bottom: 0;
    }
}

/* Form Validation */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #44ff44;
}

/* Loading State */
.submit-btn.loading {
    background: #cccccc;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
