/* AC Calculator Styles */
.ac-calc-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ac-calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.ac-calc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #033068;
    margin-bottom: 10px;
}

.ac-calc-subtitle {
    font-size: 1.2rem;
    color: #18BBF8;
    margin: 0;
}

/* Progress Bar */
.ac-calc-progress-container {
    margin-bottom: 30px;
}

.ac-calc-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ac-calc-step-text,
.ac-calc-progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #18BBF8;
}

.ac-calc-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e3f2fd;
    border-radius: 4px;
    overflow: hidden;
}

.ac-calc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #18BBF8, #033068);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 14.28%;
}

/* Form Container */
.ac-calc-form-container {
    position: relative;
}

/* Steps */
.ac-calc-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.ac-calc-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.ac-calc-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
}

.ac-calc-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.ac-calc-icon.success {
    color: #10b981;
}

.ac-calc-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #033068;
    margin-bottom: 20px;
}

.ac-calc-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #033068;
    margin-bottom: 15px;
}

.ac-calc-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #033068;
    margin-bottom: 10px;
}

.ac-calc-card p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Form Inputs */
.ac-calc-card input[type="text"],
.ac-calc-card input[type="email"],
.ac-calc-card input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
    text-align: center;
}

.ac-calc-card input:focus {
    border-color: #18BBF8;
}

.ac-calc-card small {
    display: block;
    margin-top: 10px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Options */
.ac-calc-options {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ac-calc-options:not(.system-options) {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.system-options {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ac-calc-option {
    cursor: pointer;
    display: block;
}

.ac-calc-option input[type="radio"] {
    display: none;
}

.ac-calc-option-content {
    padding: 25px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    transition: all 0.2s ease;
    text-align: center;
    height: 100%;
}

.ac-calc-option:hover .ac-calc-option-content {
    border-color: #18BBF8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 187, 248, 0.2);
}

.ac-calc-option input:checked + .ac-calc-option-content {
    border-color: #18BBF8;
    background-color: #f0f9ff;
    box-shadow: 0 5px 15px rgba(24, 187, 248, 0.3);
}

.ac-calc-option-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.ac-calc-option h3 {
    margin-bottom: 8px;
}

.ac-calc-option p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ac-calc-option small {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.price-range {
    font-weight: 600;
    color: #033068;
    font-size: 0.9rem;
}

/* Summary */
.ac-calc-summary {
    background: #f0f9ff;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    margin-bottom: 15px;
}

.summary-label {
    font-weight: 600;
    color: #033068;
    display: block;
    margin-bottom: 5px;
}

.summary-value {
    color: #6b7280;
}

/* Buttons */
.ac-calc-submit-btn,
.ac-calc-cta-btn {
    background: linear-gradient(135deg, #18BBF8, #033068);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 20px;
}

.ac-calc-submit-btn:hover,
.ac-calc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 187, 248, 0.4);
}

/* Navigation */
.ac-calc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.ac-calc-nav-btn {
    padding: 12px 25px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ac-calc-nav-btn:not(:disabled):hover {
    border-color: #18BBF8;
    color: #18BBF8;
    background: #f0f9ff;
}

.ac-calc-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ac-calc-nav-btn.next:not(:disabled) {
    background: #18BBF8;
    color: white;
    border-color: #18BBF8;
}

.ac-calc-nav-btn.next:not(:disabled):hover {
    background: #033068;
    border-color: #033068;
}

/* Thank You Page */
.thank-you-card {
    text-align: center;
}

.estimate-result {
    background: #f0f9ff;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.estimate-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #18BBF8;
    margin-bottom: 10px;
}

.estimate-details {
    color: #6b7280;
    margin-bottom: 20px;
}

.estimate-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: left;
}

.cta-section {
    background: linear-gradient(135deg, #18BBF8, #033068);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 10px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.cta-section .ac-calc-cta-btn {
    background: white;
    color: #033068;
    margin-top: 0;
}

.cta-section .ac-calc-cta-btn:hover {
    background: #f8fafc;
}

/* Next Steps */
.next-steps {
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
    margin-top: 30px;
}

.next-steps h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #033068;
    margin-bottom: 20px;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.next-step {
    text-align: center;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.next-step h5 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.next-step p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ac-calc-wrapper {
        padding: 15px;
    }
    
    .ac-calc-title {
        font-size: 2rem;
    }
    
    .ac-calc-card {
        padding: 25px;
    }
    
    .ac-calc-options:not(.system-options) {
        grid-template-columns: 1fr;
    }
    
    .system-options {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .estimate-summary {
        grid-template-columns: 1fr;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.ac-calc-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ac-calc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #18BBF8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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