/* Quote Form Section */
.quote-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.quote-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.quote-content>p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
}

/* Form Styles */
.quote-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    min-height: 600px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    flex-shrink: 0;
}

label i {
    margin-right: 8px;
    color: #6c757d;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    cursor: text;
}

select,
input[type="date"] {
    cursor: pointer;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    cursor: text;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.suggestions {
    position: absolute;
    top: 79%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}


.submit-btn {
    width: 100%;
    background: #4285f4;
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #3367d6;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: #4285f4;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.step.active .step-label {
    color: #4285f4;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* Mobile Safari select fix */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 480px) {
        .form-step {
            overflow-y: visible;
        }

        .form-step.active {
            overflow-y: visible;
        }
    }
}

.form-step[data-step="1"] {
    justify-content: center;
    gap: 40px;
}

.form-step[data-step="2"] {
    justify-content: flex-start;
    gap: 15px;
}

.form-step h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.step-note {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-style: italic;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 63px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.radio-option:hover,
.radio-option.selected {
    border-color: #4285f4;
    background: #f8f9ff;
}

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

.radio-option input[type="radio"]:checked + label {
    color: #4285f4;
    font-weight: 600;
}


.radio-option label {
    cursor: pointer;
    font-size: 1.1rem;
    margin: 0;
}

.conditional-input {
    display: inline-block;
    margin-left: 10px;
}

.conditional-input input {
    width: 200px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.radio-group-error {
    text-align: center;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    gap: 20px;
    padding-top: 30px;
    flex-shrink: 0;
}

.form-navigation .prev-btn[style*="display: none"] + .next-btn {
    margin: 0 auto;
}

/* Keep buttons side by side on last step */
.form-navigation .prev-btn[style*="display: block"] + .next-btn[style*="display: none"] + .submit-btn {
    margin: 0;
}

.prev-btn {
    background: transparent;
    color: #4285f4;
    border: 2px solid #4285f4;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
}

.prev-btn:hover {
    background: #4285f4;
    color: white;
}

.next-btn,
.submit-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 18px 34px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
    white-space: nowrap;
}

.submit-btn {
    width: auto;
    min-width: 200px;
    padding: 18px 24px;
}

.next-btn:hover,
.submit-btn:hover {
    background: #3367d6;
    border-color: #3367d6;
}

input[type="date"] {
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
}

input[type="date"]::-moz-calendar-picker-indicator {
    cursor: pointer;
}

/* Message Styles */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

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

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

/* Error Styles */
input.error,
select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    display: block;
    height: 20px;
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 950px) {
    .quote-section {
        padding: 60px 20px;
    }

    .quote-content h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .quote-content > p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .quote-form {
        padding: 30px 20px;
        min-height: 550px;
        height: auto;
        max-height: none;
        overflow: visible;
        position: static;
    }

    .form-step {
        overflow: visible;
    }

    .form-step.active {
        overflow: visible;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-group {
        min-height: 75px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    input,
    select,
    textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    select {
        background-position: right 10px center;
        background-size: 14px;
        padding-right: 35px;
    }

    /* Step Indicator */
    .step-indicator {
        margin-bottom: 30px;
    }

    .step {
        padding: 0 5px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 80px;
        line-height: 1.2;
    }

    .step-indicator::before {
        top: 18px;
    }

    /* Form Steps */
    .form-step h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .form-step[data-step="1"] {
        gap: 30px;
    }

    .form-step[data-step="2"] {
        gap: 12px;
    }

    /* Radio Options */
    .radio-group {
        gap: 12px;
    }

    .radio-option {
        padding: 12px;
        height: auto;
        min-height: 55px;
    }

    .radio-option label {
        font-size: 1rem;
    }

    .conditional-input input {
        width: 150px;
        padding: 4px 6px;
        font-size: 0.9rem;
    }

    /* Navigation Buttons */
    .form-navigation {
        gap: 15px;
        padding-top: 20px;
        flex-wrap: nowrap;
    }

    .prev-btn,
    .next-btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 120px;
        flex-shrink: 0;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
        width: auto;
        min-width: 160px;
        flex-shrink: 0;
    }

    /* Suggestions */
    .suggestions {
        max-height: 150px;
    }

    .suggestion-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    /* Error Messages */
    .error-message {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quote-section {
        padding: 40px 15px;
        overflow: visible;
    }

    .quote-content {
        overflow: visible;
    }

    .quote-content h2 {
        font-size: 1.6rem;
    }

    .quote-content > p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .quote-form {
        padding: 25px 15px;
        min-height: auto;
        height: auto;
        overflow: visible;
        position: static;
        transform: none;
    }

    .form-step {
        overflow: visible;
        flex: none;
    }

    .form-step.active {
        overflow: visible;
        min-height: 450px;
    }

    .form-row {
        overflow: visible;
        position: relative;
    }

    .form-group {
        overflow: visible;
        position: static;
    }

    select {
        position: static;
    }

    .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-group {
        min-height: 70px;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    label i {
        margin-right: 6px;
        font-size: 0.85rem;
    }

    input,
    select,
    textarea {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    select {
        /* Use native mobile select for better UX */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
        background-image: none;
        padding-right: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Step Indicator */
    .step-indicator {
        margin-bottom: 25px;
    }

    .step {
        padding: 0 3px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .step-label {
        font-size: 0.65rem;
        max-width: 70px;
    }

    .step-indicator::before {
        top: 16px;
    }

    /* Form Steps */
    .form-step h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .form-step[data-step="1"] {
        gap: 25px;
    }

    .form-step[data-step="2"] {
        gap: 10px;
    }

    /* Radio Options */
    .radio-group {
        gap: 10px;
    }

    .radio-option {
        padding: 10px;
        min-height: 50px;
    }

    .radio-option label {
        font-size: 0.95rem;
    }

    .conditional-input {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .conditional-input input {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Navigation Buttons */
    .form-navigation {
        gap: 10px;
        padding-top: 15px;
        flex-wrap: nowrap;
    }

    .prev-btn,
    .next-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100px;
        flex-shrink: 0;
    }

    .submit-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        width: auto;
        min-width: 140px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Suggestions */
    .suggestions {
        max-height: 120px;
        font-size: 0.85rem;
    }

    .suggestion-item {
        padding: 8px 12px;
    }

    /* Message */
    .message {
        margin-top: 15px;
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Quote Results Styles */
.quote-results {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.quote-results-header {
    text-align: center;
    margin-bottom: 48px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #d1fae5;
    border-radius: 50%;
    margin-bottom: 24px;
}

.success-icon i {
    font-size: 2rem;
    color: #16a34a;
}

.quote-results-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.quote-results-header .subtitle {
    font-size: 1.25rem;
    color: #6b7280;
}

/* Quote Card */
.quote-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 32px;
}

.quote-card-header {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    padding: 32px 32px;
    text-align: center;
    color: white;
}

.quote-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.cost-amount {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.cost-disclaimer {
    color: #bfdbfe;
    font-size: 0.9rem;
}

/* Partner Notification */
.partner-notification {
    background: #d1fae5;
    border-bottom: 2px solid #a7f3d0;
    padding: 32px;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #a7f3d0;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-icon i {
    color: #16a34a;
    font-size: 1.2rem;
}

.notification-text {
    color: #065f46;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-subtitle {
    font-size: 0.9rem;
    color: #047857;
}

/* Quote Details */
.quote-details {
    padding: 48px 32px;
}

.quote-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.detail-item i {
    color: #2563eb;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.detail-value {
    color: #6b7280;
    font-size: 1rem;
}

/* Important Notes */
.important-notes {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.important-notes h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 16px;
}

.important-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-notes li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #92400e;
    margin-bottom: 12px;
}

.important-notes li:last-child {
    margin-bottom: 0;
}

.important-notes i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Quote Actions */
.quote-actions {
    display: flex;
    gap: 16px;
}

.another-quote-btn {
    flex: 1;
    background: #2563eb;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.another-quote-btn:hover {
    background: #1d4ed8;
}

.another-quote-btn i {
    font-size: 1.25rem;
}

/* Additional Services */
.additional-services {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 48px 32px;
}

.additional-services h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    text-align: center;
}

.additional-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.additional-services .service-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.additional-services .service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.additional-services .service-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 16px;
}

.additional-services .service-card h4 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.additional-services .service-card p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Styles for Quote Results */
@media (max-width: 768px) {
    .quote-results-header h1 {
        font-size: 2rem;
    }

    .quote-results-header .subtitle {
        font-size: 1.125rem;
    }

    .quote-card-header {
        padding: 24px 24px;
    }

    .quote-card-header h2 {
        font-size: 1.25rem;
    }

    .cost-amount {
        font-size: 2.5rem;
    }

    .partner-notification {
        padding: 24px;
    }

    .notification-content {
        flex-direction: row;
        text-align: left;
    }

    .quote-details {
        padding: 32px 24px;
    }

    .quote-details h3 {
        font-size: 1.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .additional-services {
        padding: 32px 24px;
    }

    .additional-services h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .success-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .success-icon i {
        font-size: 1.5rem;
    }

    .quote-results-header {
        margin-bottom: 32px;
    }

    .quote-results-header h1 {
        font-size: 1.75rem;
    }

    .quote-results-header .subtitle {
        font-size: 1rem;
    }

    .quote-card-header {
        padding: 20px 16px;
    }

    .quote-card-header h2 {
        font-size: 1.1rem;
    }

    .cost-amount {
        font-size: 2rem;
    }

    .cost-disclaimer {
        font-size: 0.8rem;
    }

    .partner-notification {
        padding: 16px;
    }

    .notification-icon {
        width: 28px;
        height: 28px;
    }

    .notification-icon i {
        font-size: 1rem;
    }

    .notification-title {
        font-size: 0.95rem;
    }

    .notification-subtitle {
        font-size: 0.85rem;
    }

    .quote-details {
        padding: 24px 16px;
    }

    .quote-details h3 {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .details-grid {
        gap: 20px;
        margin-bottom: 32px;
    }

    .detail-item {
        gap: 8px;
    }

    .detail-item i {
        font-size: 1.25rem;
    }

    .detail-label {
        font-size: 0.85rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .important-notes {
        padding: 16px;
    }

    .important-notes h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .important-notes li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .quote-actions {
        flex-direction: column;
    }

    .another-quote-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .additional-services {
        padding: 24px 16px;
    }

    .additional-services h3 {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-card i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .service-card h4 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}

