/* WhatsApp Enquiry Assistant Modal Styles */

/* Modal Container */
.whatsapp-enquiry-modal {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border: none;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    padding: 0;
    background: #ffffff;
    overflow: hidden;
}

.whatsapp-enquiry-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Modal Header */
.modal-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--ps-navy) 0%, var(--ps-teal) 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal Body */
.modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2rem;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome-screen h3 {
    color: var(--ps-navy);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.welcome-screen p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-box {
    background: #edf9f7;
    border-left: 4px solid var(--ps-teal);
    padding: 1.25rem;
    border-radius: 6px;
    text-align: left;
    margin: 1.5rem 0;
    color: #1f2937;
    font-size: 0.95rem;
}

.info-box strong {
    display: block;
    color: var(--ps-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.info-box ol {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* Service Selection */
.service-selection,
.sub-service-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-selection h3,
.sub-service-selection h3 {
    color: var(--ps-navy);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.service-selection p,
.sub-service-selection p {
    color: #6b7280;
    margin: 0 0 1rem 0;
}

/* Service Option Buttons */
.service-option-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.service-option-button:hover {
    border-color: var(--ps-teal);
    background: #f0fffe;
    transform: translateX(4px);
}

.option-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.option-label {
    font-weight: 600;
    color: var(--ps-navy);
    font-size: 0.95rem;
}

.option-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Sub-Service Option Buttons */
.sub-service-option-button {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.sub-service-option-button:hover {
    border-color: var(--ps-teal);
    background: #f0fffe;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.sub-option-label {
    font-weight: 600;
    color: var(--ps-navy);
    font-size: 0.95rem;
}

.sub-option-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Information Collection Form */
.info-collection {
    display: flex;
    flex-direction: column;
}

.info-collection h3 {
    color: var(--ps-navy);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.info-collection p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--ps-navy);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.enquiry-input {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-input:focus {
    outline: none;
    border-color: var(--ps-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

select.enquiry-input {
    cursor: pointer;
    background-color: #ffffff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

select.enquiry-input:invalid,
select.enquiry-input option[value=""] {
    color: #9ca3af;
}

/* Enquiry Summary */
.enquiry-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enquiry-summary h3 {
    color: var(--ps-navy);
    font-size: 1.2rem;
    margin: 0;
}

.summary-instructions {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.summary-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

.summary-item strong {
    color: var(--ps-navy);
    display: inline-block;
    min-width: 120px;
}

.summary-next-steps {
    background: #f0fffe;
    border: 1px solid #a7f3d0;
    border-left: 4px solid var(--ps-teal);
    border-radius: 6px;
    padding: 1.5rem;
}

.summary-next-steps strong {
    color: var(--ps-navy);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-next-steps ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.8;
}

.summary-next-steps li {
    margin-bottom: 0.4rem;
}

.summary-timing {
    background: rgba(20, 184, 166, 0.08);
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 1rem;
    color: #1f2937;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.summary-timing strong {
    color: var(--ps-navy);
}

/* Modal Footer */
.modal-footer {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.modal-footer button,
.modal-footer a {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--ps-navy);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-primary {
    background: var(--ps-navy);
    color: white;
}

.btn-primary:hover {
    background: #14B8A6;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1fa851;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-enquiry-modal {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

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

    .modal-header p {
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        justify-content: stretch;
    }

    .modal-footer button,
    .modal-footer a {
        width: 100%;
    }

    .service-option-button {
        padding: 1rem;
    }

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

    .option-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-enquiry-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
        max-height: calc(100vh - 20px);
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .modal-header {
        padding: 1.25rem;
    }

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

    .modal-header p {
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

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

    .service-selection h3,
    .sub-service-selection h3,
    .info-collection h3,
    .enquiry-summary h3 {
        font-size: 1.1rem;
    }

    .service-option-button {
        gap: 0.75rem;
    }

    .option-icon {
        font-size: 1.3rem;
    }

    .summary-content {
        padding: 1rem;
    }

    .summary-item strong {
        min-width: 100px;
    }
}

/* Print Styles */
@media print {
    .whatsapp-enquiry-modal {
        display: none;
    }
}
