﻿/* ==================================================
   CUSTOMER INFO MODAL STYLES - Organized CSS
   ==================================================

   This file contains SPECIFIC styles for the Customer Info Modal (myModal).
   It inherits base modal styles from ../shared/modals.css and adds
   Customer Info specific customizations on top.

   IMPORTANT: This file works WITH modals.css, not instead of it!

   Last Updated: [Current Date]
   ================================================== */

/* ==================================================
   1. CUSTOMER INFO MODAL Z-INDEX (Required for proper layering)
   ================================================== */

/* Modal dialog sizing */
#myModal .modal-dialog {
    max-width: 500px;
}

#myModal {
    z-index: 10000 !important;
}

#myModal .modal-dialog {
    z-index: 10000 !important;
}

#myModal .modal-content {
    z-index: 10000 !important;
}

/* Header overlay effect */
.customer-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

/* Header content layout */
.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* Header icon styling */
.header-icon {
    font-size: 24px;
    opacity: 0.9;
    color: white;
}

/* Header text container */
.header-text {
    flex: 1;
}

/* Main title styling */
.title-main {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

/* Subtitle styling */
.title-subtitle {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Close button styling */
.customer-close {
    position: relative;
    z-index: 2;
    color: white;
    opacity: 0.8;
    font-size: 24px;
    transition: opacity 0.2s;
}

.customer-close:hover {
    opacity: 1;
}

/* ==================================================
   3. MODAL BODY & FOOTER STYLING
   ================================================== */

/* Basic modal body and footer styling is handled by ../shared/modals.css */
/* Only Customer Info specific elements are styled here */

/* ==================================================
   4. PROGRESS STEPS STYLING
   ================================================== */

/* Progress steps container - Beautiful step counter */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 16px 24px 20px 24px;
    position: relative;
    padding: 16px 24px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Progress line connecting steps */
.progress-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 1px;
    z-index: 1;
}

/* Individual step container */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Step number circle */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Active step styling */
.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Completed step styling */
.step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Step label styling */
.step-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    transition: color 0.3s ease;
}

/* Active step label */
.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* Completed step label */
.step.completed .step-label {
    color: #10b981;
}

/* ==================================================
   5. FORM STEPS STYLING
   ================================================== */

/* Form step containers */
.form-step {
    display: none;
}

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

/* Step header styling */
.step-header {
    margin-bottom: 8px;
    text-align: center;
    padding: 6px 0;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.step-header h6 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==================================================
   6. CONTACT OPTIONS STYLING
   ================================================== */

/* Contact option containers */
.contact-option {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

.contact-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: none;
}

/* ==================================================
   7. STEP-SPECIFIC FIELD STYLING
   ================================================== */

/* Step-specific field containers */
.step1-company-field,
.step1-approach-field,
.step2-services-field,
.step2-expertise-field,
.step3-proposal-field {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

/* Step-specific field hover effects */
.step1-company-field:hover,
.step1-approach-field:hover,
.step2-services-field:hover,
.step2-expertise-field:hover,
.step3-proposal-field:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: none;
}

/* Step-specific field headers */
.step1-company-field .option-header,
.step1-approach-field .option-header,
.step2-services-field .option-header,
.step2-expertise-field .option-header,
.step3-proposal-field .option-header {
    margin-bottom: 4px;
}

/* Step-specific field descriptions */
.step1-company-field .option-description,
.step1-approach-field .option-description,
.step2-services-field .option-description,
.step2-expertise-field .option-description,
.step3-proposal-field .option-description {
    margin-bottom: 6px;
    margin-left: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
}

/* ==================================================
   8. OPTION ELEMENTS STYLING
   ================================================== */

/* Option header layout */
.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Option label styling */
.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    font-size: 16px;
}

.option-label i {
    color: #667eea;
    width: 18px;
}

/* Option description styling */
.option-description {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
    margin-left: 28px;
}

/* Required field indicator */
.required {
    color: #ef4444;
    font-weight: 600;
}

/* ==================================================
   9. FORM ELEMENTS STYLING
   ================================================== */

/* Form group container */
.customer-form-group {
    flex: 1;
    position: relative;
    margin-bottom: 15px;
}

/* Customer form container */
.customer-form {
    margin-top: 20px;
}

/* Input field styling */
.customer-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.customer-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: none;
}

/* Input focus border effect */
.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.customer-input:focus + .input-focus-border {
    width: 100%;
}

/* Form text helper styling */
.form-text {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

.form-text i {
    width: 14px;
}

/* Customer Info modal footer layout sections (specific to this modal) */
#myModal .footer-left,
#myModal .footer-center,
#myModal .footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================================================
   11. BUTTON STYLING
   ================================================== */

/* All button styling is now handled by ../shared/modals.css */
/* This ensures consistent button styling across ALL modals */

/* ==================================================
   12. RESPONSIVE DESIGN
   ================================================== */

/* Tablet and mobile responsiveness */
@media (max-width: 768px) {
    .customer-modal-header {
        padding: 15px 20px;
    }

    .customer-modal-body {
        padding: 15px 18px;
    }

    .progress-steps {
        margin: 12px 16px 16px 16px;
        padding: 12px 16px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .progress-steps::before {
        left: 40px;
        right: 40px;
    }

    .header-content {
        gap: 12px;
    }

    .header-icon {
        font-size: 20px;
    }

    .title-main {
        font-size: 18px;
    }

    .title-subtitle {
        font-size: 13px;
    }

    .customer-modal-footer {
        padding: 15px 18px;
        flex-direction: column;
        gap: 12px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .customer-modal-header {
        padding: 12px 18px;
    }

    .customer-modal-body {
        padding: 12px 15px;
    }

    .progress-steps {
        margin: 8px 12px 12px 12px;
        padding: 8px 12px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .progress-steps::before {
        left: 28px;
        right: 28px;
    }

    .header-content {
        gap: 8px;
    }

    .header-icon {
        font-size: 18px;
    }

    .title-main {
        font-size: 16px;
    }

    .title-subtitle {
        font-size: 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .step-header h6 {
        font-size: 14px;
    }

    .option-label {
        font-size: 14px;
    }

    .customer-input {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ==================================================
   13. ACCESSIBILITY & FOCUS STATES
   ================================================== */

/* Enhanced focus states for accessibility */
.btn:focus,
.customer-input:focus,
.option-label:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .customer-info-modal {
        border: 2px solid #000;
    }

    .customer-modal-header {
        border-bottom: 2px solid #fff;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .customer-info-modal,
    .btn,
    .customer-input,
    .step-number,
    .contact-option {
        transition: none;
    }

    .step.active .step-number {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}
