/* Cost Calculator Styles */
.cost-calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.calculator-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

/* Enhanced Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.success-icon {
    margin: 0 auto 2rem;
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

.thank-you-section h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.thank-you-text {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Cost Display */
.cost-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.cost-display h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.total-cost {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.cost-breakdown {
    text-align: left;
    margin-top: 2rem;
}

.cost-breakdown h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.item-label {
    font-weight: 600;
}

.item-details {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
}

.item-cost {
    font-weight: bold;
    font-size: 1rem;
}

/* Next Steps */
.next-steps {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.contact-note {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.reference-note {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.calculate-another-btn, .print-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.calculate-another-btn:hover, .print-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Error Message */
.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-message h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.error-message ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

/* Form Styles */
.calculator-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.phone-input {
    display: flex;
    align-items: center;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.phone-input:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.country-code {
    padding: 0.75rem;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.875rem;
    font-weight: 600;
}

.phone-input input {
    border: none;
    flex: 1;
    padding: 0.75rem;
    background: transparent;
}

.phone-input input:focus {
    outline: none;
    box-shadow: none;
}

.submit-section {
    text-align: center;
    margin-top: 2rem;
}

.calculate-btn {
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: black;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
}

/* Disclaimer */
.disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.disclaimer p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}
/* Print Styles */
@media print {
    .action-buttons, .disclaimer, .calculator-header {
        display: none !important;
    }
    
    .success-message {
        background: white !important;
        color: black !important;
        border: 2px solid #10b981;
        box-shadow: none !important;
    }
    
    .cost-display {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb;
    }
    
    .breakdown-item {
        background: #f3f4f6 !important;
        border: 1px solid #d1d5db;
    }
    
    .next-steps {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cost-calculator-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .calculator-header h2 {
        font-size: 1.5rem;
    }
    
    .total-cost {
        font-size: 2.5rem;
    }
    
    .success-message {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .thank-you-section h3 {
        font-size: 1.5rem;
    }
    
    .cost-display {
        padding: 1.5rem;
    }
    
    .breakdown-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .item-details {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .calculate-another-btn, .print-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .success-icon {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 480px) {
    .cost-calculator-container {
        padding: 0.5rem;
    }
    
    .success-message {
        padding: 1.5rem 1rem;
    }
    
    .total-cost {
        font-size: 2rem;
    }
    
    .thank-you-section h3 {
        font-size: 1.25rem;
    }
    
    .calculator-form {
        padding: 1rem;
    }
}

/* Animation for success message */
.success-message {
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading state for form submission */
.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Enhanced focus states for accessibility */
.form-group input:focus,
.form-group select:focus,
.calculate-btn:focus,
.calculate-another-btn:focus,
.print-btn:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Hover effects for better interactivity */
.breakdown-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.cost-display:hover {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}