/* ARPSI Pricing Calculator Styles */

#arpsi-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.arpsi-calculator {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

/* Header */
.arpsi-header {
    text-align: center;
    margin-bottom: 40px;
}

.arpsi-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.arpsi-header p {
    font-size: 18px;
    color: #7f8c8d;
}

/* Progress Bar */
.arpsi-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #37bf8d, #2da575);
    width: 33.33%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-steps .step {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: #95a5a6;
    font-weight: 500;
    position: relative;
}

.progress-steps .step.active {
    color: #37bf8d;
    font-weight: 600;
}

.progress-steps .step.completed {
    color: #27ae60;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

.service-card:hover {
    border-color: #37bf8d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card.addon {
    background: #f8f9fa;
}

/* Service Input Fields - Inline */
.service-input-field {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 15px;
}

.service-input-field label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 13px;
}

.service-input-field input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.service-input-field input:focus {
    outline: none;
    border-color: #37bf8d;
    box-shadow: 0 0 0 2px rgba(55, 191, 141, 0.1);
}

.service-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.service-header input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.service-header label {
    flex: 1;
    cursor: pointer;
}

.service-header h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 18px;
}

.service-header .price {
    display: block;
    color: #37bf8d;
    font-weight: 600;
    font-size: 14px;
}

.service-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #37bf8d;
    box-shadow: 0 0 0 3px rgba(55, 191, 141, 0.1);
}

.form-group .help-text {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

.small-input {
    width: 100px;
}

.optional-services {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.optional-services h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white !important;
}

.btn-primary {
    background: #37bf8d !important;
    color: white !important;
    border: none;
}

.btn-primary:hover {
    background: #2da575 !important;
    color: white !important;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #37bf8d !important;
    color: white !important;
    border: none;
}

.btn-success:hover {
    background: #2da575 !important;
    color: white !important;
}

.btn-info {
    background: #37bf8d !important;
    color: white !important;
    border: none;
}

.btn-info:hover {
    background: #2da575 !important;
    color: white !important;
}

.btn-outline {
    background: transparent;
    color: #37bf8d;
    border: 2px solid #37bf8d;
}

.btn-outline:hover {
    background: #37bf8d !important;
    color: white !important;
}

/* Ensure all button links have white text */
a.btn, a.btn-primary, a.btn-success, a.btn-info {
    color: white !important;
    text-decoration: none;
}

a.btn-primary:hover, a.btn-success:hover, a.btn-info:hover {
    color: white !important;
}

/* Specific styling for download proposal button */
#download-proposal {
    background: #37bf8d !important;
    color: white !important;
    border: none !important;
}

#download-proposal:hover {
    background: #2da575 !important;
    color: white !important;
}

/* Pricing Breakdown */
.pricing-breakdown {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pricing-table th,
.pricing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pricing-table th {
    background: #37bf8d;
    color: white;
    font-weight: 600;
}

.pricing-table tr:nth-child(even) {
    background: #fff;
}

.pricing-total {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
    padding-top: 15px;
    border-top: 2px solid #37bf8d;
}

.bundle-notice {
    margin-bottom: 20px;
}

.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #37bf8d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader p {
    color: white;
    font-size: 18px;
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 15px;
}

.success-message p {
    color: #155724;
    margin-bottom: 20px;
}

.success-message .btn-primary {
    background: #37bf8d !important;
    color: white !important;
    border: none;
    margin-top: 15px;
}

.success-message .btn-primary:hover {
    background: #2da575 !important;
    color: white !important;
}

/* Case Study Section */
.arpsi-case-study {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.arpsi-case-study h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.arpsi-case-study p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
    .arpsi-calculator {
        padding: 20px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .progress-steps {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .form-navigation,
    #loading-overlay,
    .arpsi-case-study {
        display: none !important;
    }
    
    .arpsi-calculator {
        box-shadow: none;
        padding: 0;
    }
}