/**
 * Quote Request Form Styles
 * Dark theme with green accents matching NexGenHealth.io design
 */

/* ============================================
   CONTAINER
   ============================================ */

.quote-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.quote-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(0, 135, 90, 0.05);
    border-radius: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #444;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #00875A;
    color: #fff;
    border-color: #00875A;
    box-shadow: 0 0 15px rgba(0, 135, 90, 0.4);
}

.progress-step.completed .step-number {
    background: #006644;
    color: #fff;
    border-color: #006644;
}

.progress-step.completed .step-number::after {
    content: '\2713';
}

.step-label {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.progress-step.active .step-label {
    color: #00875A;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #006644;
}

.progress-connector {
    width: 60px;
    height: 2px;
    background: #333;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   FORM STEPS
   ============================================ */

.form-step {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #333;
}

.step-title {
    color: #00875A;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-description {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    color: #00875A;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group .required {
    color: #ff6b6b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333;
    background: #0a0a0a;
    color: #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00875A;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300875A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select option {
    background: #1a1a1a;
    color: #cccccc;
}

/* ============================================
   RADIO & CHECKBOX GROUPS
   ============================================ */

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #cccccc;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #00875A;
    background: rgba(0, 135, 90, 0.05);
}

.radio-label input,
.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #00875A;
    cursor: pointer;
}

.radio-label input:checked + span,
.checkbox-label input:checked + span {
    color: #00875A;
    font-weight: 500;
}

/* ============================================
   QUESTION SECTIONS
   ============================================ */

.question-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.section-title {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ============================================
   ARCHITECTURE GRID
   ============================================ */

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.arch-card {
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.arch-card:hover {
    border-color: #00875A;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 135, 90, 0.15);
}

.arch-card.selected {
    border-color: #00875A;
    background: rgba(0, 135, 90, 0.1);
    box-shadow: 0 0 20px rgba(0, 135, 90, 0.2);
}

.arch-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.arch-name {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.arch-description {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

.arch-selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00875A;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-prev {
    background: transparent;
    border: 2px solid #444;
    color: #888;
}

.btn-prev:hover {
    border-color: #666;
    color: #fff;
}

.btn-next {
    background: #00875A;
    color: #fff;
}

.btn-next:hover {
    background: #00a572;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 135, 90, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #00875A 0%, #006644 100%);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #00a572 0%, #00875A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 135, 90, 0.4);
}

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

/* ============================================
   REVIEW SUMMARY
   ============================================ */

#review-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-section {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
}

.review-section h3 {
    color: #00875A;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

.review-section p {
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.review-section p strong {
    color: #888;
    font-weight: 500;
}

.review-section .arch-full-name {
    color: #888;
    font-size: 0.85rem;
}

.btn-edit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    border-color: #00875A;
    color: #00875A;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-message {
    text-align: center;
    padding: 4rem 2rem;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00875A 0%, #006644 100%);
    color: #fff;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 135, 90, 0.3);
}

.success-message h2 {
    color: #00875A;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back-to-consulting {
    display: inline-block;
    padding: 1rem 2rem;
    background: #00875A;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-to-consulting:hover {
    background: #00a572;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 135, 90, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .quote-form-container {
        padding: 0 1rem 2rem;
    }

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

    .progress-connector {
        display: none;
    }

    .progress-step {
        flex: 0 0 auto;
    }

    .form-step {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

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

    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }

    .radio-label,
    .checkbox-label {
        width: 100%;
    }

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

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

    .step-title {
        font-size: 1.5rem;
    }

    .success-message {
        padding: 2rem 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .success-message h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

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

    .arch-card {
        padding: 1rem;
    }

    .arch-icon {
        font-size: 1.5rem;
    }

    .arch-name {
        font-size: 1rem;
    }
}
