/* Quote Section Styles */
.quote-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - var(--header-height));
    margin-top: 2rem;
}

.quote-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quote-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quote-header p {
    color: #666;
    font-size: 1.125rem;
}

/* Timeline Progress */
.timeline-progress {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 3rem;
    position: relative;
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 20px;
}

.timeline-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timeline-step:hover {
    transform: translateY(-2px);
}

/* Arrow styling */
.timeline-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.timeline-step::before {
    content: '→';
    position: absolute;
    top: 12px;
    right: -5px;
    font-size: 20px;
    color: #2196f3;
    z-index: 1;
    font-weight: bold;
}

.timeline-step:last-child::before,
.timeline-step:last-child::after {
    display: none;
}

.timeline-step.active::after {
    background: #2196f3;
}

.timeline-step.active ~ .timeline-step::before {
    color: #e0e0e0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-step.active .step-number,
.timeline-step:hover .step-number {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
}

.timeline-step.active .step-label,
.timeline-step:hover .step-label {
    color: #2196f3;
    font-weight: 600;
}

.timeline-step.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.timeline-step.disabled:hover {
    transform: none;
}

.timeline-step.disabled .step-number {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
}

.timeline-step.completed .step-number {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

.timeline-step.completed .step-label {
    color: #4caf50;
}

.timeline-step.completed::after {
    background: #4caf50;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.radio-cards.error {
    border: 2px dashed #dc3545;
    border-radius: 8px;
    padding: 10px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group input.error + .error-message,
.form-group select.error + .error-message,
.form-group textarea.error + .error-message {
    display: block;
}

/* Custom terms input styling */
.custom-terms-group {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.custom-terms-group label {
    color: #2196f3;
    font-weight: 600;
}

.custom-terms-group input {
    margin-top: 0.5rem;
}

/* Quote Form */
.quote-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-step {
    display: none;
}

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

.form-step h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 92, 169, 0.1);
}

/* Radio Cards */
.radio-cards {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    min-width: 900px;
    overflow-x: auto;
    padding: 1rem 0;
}

.radio-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #fff;
}

.radio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2196f3;
}

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

.radio-card input[type="radio"]:checked + .card-content {
    border-color: #2196f3;
}

.radio-card input[type="radio"]:checked ~ .card-content {
    background-color: rgba(33, 150, 243, 0.05);
}

.radio-card input[type="radio"]:checked + .card-content h3 {
    color: #2196f3;
}

.radio-card input[type="radio"]:checked {
    border-color: #2196f3;
}

.radio-card input[type="radio"]:checked ~ .card-content .card-icon {
    color: #2196f3;
}

.radio-card:has(input[type="radio"]:checked) {
    border: 2px solid #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-3px);
}

.radio-card .card-content {
    text-align: center;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #2196f3;
}

.radio-card h3 {
    margin: 0 0 0.5rem;
    color: #333;
    font-size: 1.2rem;
}

.radio-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Container adjustments for radio cards */
.quote-form .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* Footer adjustments */
.footer {
    background: #1a1a1a;
    padding: 4rem 0 2rem;
}

.footer .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-section {
    padding: 0 0.5rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline-progress {
        padding: 0 10px;
    }

    .timeline-step::before {
        font-size: 16px;
        right: -3px;
        top: 14px;
    }

    .timeline-step::after {
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }

    .step-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .timeline-step::before,
    .timeline-step::after {
        display: none;
    }

    .timeline-progress {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-step {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
    }

    .step-label {
        margin-top: 0;
        line-height: 40px;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--accent-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.875rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .radio-cards {
        grid-template-columns: 1fr;
    }

    .dimensions-inputs {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .quote-form {
        padding: 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-btn,
    .next-btn,
    .submit-btn {
        width: 100%;
    }

    .timeline-progress {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timeline-step {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .quote-header h1 {
        font-size: 2rem;
    }

    .form-step h2 {
        font-size: 1.5rem;
    }

    .timeline-step {
        flex: 0 0 100%;
    }
}

/* Button styling */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.prev-btn,
.next-btn,
.submit-btn {
    min-width: 160px;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* Previous button styling */
.prev-btn {
    background: #fff;
    color: #2196f3;
    border: 2px solid #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.prev-btn::before {
    content: '←';
    font-size: 1.2rem;
    margin-right: 4px;
    transition: transform 0.3s ease;
}

.prev-btn:hover {
    background: #f5f9ff;
    transform: translateX(-2px);
}

.prev-btn:hover::before {
    transform: translateX(-3px);
}

/* Next button styling */
.next-btn,
.submit-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.next-btn::after {
    content: '→';
    font-size: 1.2rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.next-btn:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.next-btn:hover::after {
    transform: translateX(3px);
}

/* Active state for buttons */
.prev-btn:active,
.next-btn:active,
.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

/* Submit button specific styling */
.submit-btn {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive button styling */
@media (max-width: 768px) {
    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-btn,
    .next-btn,
    .submit-btn {
        width: 100%;
        min-width: unset;
        padding: 0.9rem 1.5rem;
    }

    .prev-btn {
        order: 2;
    }

    .next-btn,
    .submit-btn {
        order: 1;
    }
}

/* Button focus states */
.prev-btn:focus,
.next-btn:focus,
.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.submit-btn:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* Button disabled state */
.prev-btn:disabled,
.next-btn:disabled,
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hover effects for desktop only */
@media (hover: hover) {
    .prev-btn:hover,
    .next-btn:hover,
    .submit-btn:hover {
        transform: translateY(-2px);
    }

    .prev-btn:active,
    .next-btn:active,
    .submit-btn:active {
        transform: translateY(1px);
    }
} 