/* Pricing Calculator Styles */

.pricing-calculator-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-bottom: 40px;
}

.pricing-hero {
    background: linear-gradient(135deg, #233565 0%, #415BA9 100%);
    color: white;
    padding: 60px 20px 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Error Alert */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-danger {
    background: #fee;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert strong {
    font-weight: 600;
}

/* Main Configuration Section - Grid Layout */
.main-config-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.config-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.config-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(65, 91, 169, 0.2);
}

.config-item .section-icon {
    margin-bottom: 15px;
}

.config-item .section-icon img {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.config-item:hover .section-icon img {
    transform: scale(1.1);
}

.config-item h3 {
    color: #233565;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.config-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
}

.config-item .input-group {
    margin-top: auto;
}

.config-item .input-group label {
    display: block;
    font-weight: 600;
    color: #415BA9;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.config-item .form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.config-item .form-control:focus {
    outline: none;
    border-color: #415BA9;
    box-shadow: 0 0 0 3px rgba(65, 91, 169, 0.1);
}

.config-item small {
    display: block;
    color: #999;
    font-style: italic;
    margin-top: 5px;
    font-size: 0.75rem;
}

.validation-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Modules Section */
.modules-section {
    padding: 40px 0;
    margin-top: 20px;
}

.modules-section h2 {
    text-align: center;
    color: #A11E23;
    font-size: 2rem;
    margin-bottom: 10px;
}

.modules-section .text-center {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.module-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #415BA9;
    box-shadow: 0 5px 20px rgba(65, 91, 169, 0.15);
    transform: translateY(-2px);
}

.module-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.module-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #415BA9;
}

.module-checkbox label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #233565;
    cursor: pointer;
    margin: 0;
}

.module-description {
    color: #555;
}

.module-description img {
    float: right;
    margin: 0 0 10px 10px;
    width: 48px;
    height: 48px;
}

.module-description h4 {
    color: #415BA9;
    font-size: 1rem;
    margin: 10px 0;
}

.module-description p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.module-description p strong {
    color: #333;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.calculate-button {
    background: linear-gradient(135deg, #415BA9 0%, #233565 100%);
    color: white;
    border: none;
    padding: 18px 80px;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(65, 91, 169, 0.4);
}

.calculate-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(65, 91, 169, 0.5);
}

.calculate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    border: 8px solid rgba(65, 91, 169, 0.2);
    border-top: 8px solid #415BA9;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    color: #233565;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.loading-content p {
    color: #666;
}

/* Pricing Results Overlay */
.pricing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.pricing-modal {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #A11E23;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-button:hover {
    background: #8a1a1f;
    transform: rotate(90deg);
}

.pricing-results {
    padding: 50px 40px 40px;
}

.results-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #415BA9;
}

.header-col {
    text-align: center;
    font-weight: bold;
    color: #233565;
    font-size: 1.1rem;
}

.results-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-col {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3DB057;
}

.detail-col {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.results-info {
    text-align: center;
    padding: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.results-info p {
    margin: 5px 0;
}

.results-divider {
    text-align: center;
    padding: 20px 0;
    font-size: 1.2rem;
    color: #666;
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.cta-button {
    background: #ffffff;
    color: #415BA9;
    border: 2px solid #415BA9;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: linear-gradient(135deg, #415BA9 0%, #233565 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 91, 169, 0.3);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-config-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .main-config-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }

    .pricing-container {
        padding: 20px;
    }

    .main-config-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .config-item p {
        min-height: auto;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .results-header,
    .results-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header-col,
    .price-col,
    .detail-col {
        text-align: left;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
    }

    .pricing-modal {
        max-height: 95vh;
    }

    .pricing-results {
        padding: 40px 20px 20px;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 1.5rem;
    }

    .pricing-hero .lead {
        font-size: 1rem;
    }

    .module-checkbox label {
        font-size: 1rem;
    }

    .calculate-button {
        padding: 15px 50px;
        font-size: 1.1rem;
    }

    .price-col {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .pricing-overlay {
        position: static;
        background: white;
    }

    .pricing-modal {
        box-shadow: none;
        max-height: none;
    }

    .close-button {
        display: none;
    }

    .cta-buttons {
        display: none;
    }

    body {
        background: white;
    }

    .pricing-calculator-page {
        display: none;
    }
}
