/* Cotizador de Servicios Web - Frontend Styles - Dark Mode */

.csw-quote-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    background: #1a1a1a;
}

/* Language Selector */
.csw-language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.csw-lang-btn {
    padding: 10px 25px;
    border: 2px solid #404040;
    background: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.csw-lang-btn:hover {
    border-color: #606060;
    background: #333333;
    transform: translateY(-2px);
}

.csw-lang-btn.active {
    background: #505050;
    color: #ffffff;
    border-color: #606060;
}

/* Form Header */
.csw-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #2a2a2a;
    border-radius: 15px;
    color: #ffffff;
    border: 1px solid #404040;
}

.csw-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.csw-subtitle {
    margin: 0;
    font-size: 16px;
    color: #b0b0b0;
}

/* Form */
.csw-form {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #404040;
}

/* Section */
.csw-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #404040;
}

.csw-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.csw-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.csw-help-text {
    font-size: 14px;
    color: #909090;
    margin: 0 0 15px 0;
    font-style: italic;
}

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

.csw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
}

.csw-form-group input[type="text"],
.csw-form-group input[type="email"],
.csw-form-group input[type="tel"],
.csw-form-group textarea,
.csw-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #e0e0e0;
}

.csw-form-group input:focus,
.csw-form-group textarea:focus,
.csw-form-group select:focus {
    outline: none;
    border-color: #606060;
    box-shadow: 0 0 0 3px rgba(96, 96, 96, 0.2);
    background: #222222;
}

.csw-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Form Row */
.csw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .csw-form-row {
        grid-template-columns: 1fr;
    }
}

/* Radio Cards */
.csw-radio-group {
    display: grid;
    gap: 15px;
}

.csw-radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.csw-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.csw-radio-content {
    padding: 20px;
    border: 2px solid #404040;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: #1a1a1a;
}

.csw-radio-card:hover .csw-radio-content {
    border-color: #606060;
    background: #222222;
    transform: translateX(5px);
}

.csw-radio-card input[type="radio"]:checked + .csw-radio-content {
    border-color: #707070;
    background: #2a2a2a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.csw-radio-label {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

/* Checkbox Cards */
.csw-checkbox-group {
    display: grid;
    gap: 12px;
}

.csw-checkbox-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.csw-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.csw-checkbox-label {
    display: block;
    padding: 15px 20px;
    border: 2px solid #404040;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #1a1a1a;
    font-weight: 500;
    color: #e0e0e0;
}

.csw-checkbox-card:hover .csw-checkbox-label {
    border-color: #606060;
    background: #222222;
    transform: translateX(3px);
}

.csw-checkbox-card input[type="checkbox"]:checked + .csw-checkbox-label {
    border-color: #707070;
    background: #2a2a2a;
    color: #ffffff;
    font-weight: 600;
}

.csw-checkbox-card input[type="checkbox"]:checked + .csw-checkbox-label::before {
    content: "✓ ";
    font-weight: 700;
}

/* Cost Notice */
.csw-cost-notice {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #2a2a2a;
    border-radius: 12px;
    margin: 30px 0;
    color: #e0e0e0;
    border: 2px solid #404040;
}

.csw-cost-content {
    flex: 1;
}

.csw-cost-title {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

.csw-cost-text {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #b0b0b0;
}

.csw-cost-amount {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.csw-separator {
    font-size: 16px;
    color: #909090;
}

/* Submit Button */
.csw-form-actions {
    text-align: center;
    margin-top: 30px;
}

.csw-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #505050;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.csw-submit-btn:hover {
    transform: translateY(-2px);
    background: #606060;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.csw-btn-icon {
    font-size: 24px;
}

/* Loading Overlay */
.csw-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 1000;
}

.csw-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #404040;
    border-top: 4px solid #808080;
    border-radius: 50%;
    animation: csw-spin 1s linear infinite;
}

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

.csw-loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .csw-quote-form-wrapper {
        margin: 20px 15px;
    }
    
    .csw-form {
        padding: 25px 20px;
    }
    
    .csw-form-header {
        padding: 20px;
    }
    
    .csw-title {
        font-size: 24px;
    }
    
    .csw-cost-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .csw-cost-amount {
        flex-direction: column;
        gap: 5px;
    }
}
