/* inquiry-modal.css - Shared Step-by-Step Inquiry Modal Styles */

/* Modal Overlay */
.inquiry-step-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.95), rgba(0, 100, 130, 0.9));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.inquiry-step-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.inquiry-step-modal {
    width: 90%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.inquiry-step-overlay.active .inquiry-step-modal {
    transform: translateY(0);
}

/* Close Button */
.inquiry-step-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.inquiry-step-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Step Container */
.inquiry-steps-container {
    min-height: 280px;
}

/* Individual Step */
.inquiry-step {
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button */
.inquiry-btn-back {
    background: none;
    border: none;
    color: #0a2647;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.inquiry-btn-back:hover {
    color: #00bcd4;
}

/* Greeting Text */
.inquiry-greeting {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 0.5rem;
}

.inquiry-name-highlight {
    color: #00bcd4;
}

/* Question Text */
.inquiry-question {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Service Context */
.inquiry-service-context {
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #0a2647;
    border-left: 3px solid #00bcd4;
}

/* Input Wrapper */
.inquiry-input-wrapper {
    margin-bottom: 1.5rem;
}

.inquiry-input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-size: 1.2rem;
    color: #0a2647;
    transition: border-color 0.3s;
}

.inquiry-input:focus {
    outline: none;
    border-bottom-color: #00bcd4;
}

.inquiry-input::placeholder {
    color: #aaa;
}

/* Error Message */
.inquiry-error {
    display: none;
    color: #ff5252;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Step Actions */
.inquiry-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.inquiry-btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.inquiry-btn-primary {
    background: linear-gradient(135deg, #0a2647, #144272);
    color: white;
}

.inquiry-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 38, 71, 0.3);
}

.inquiry-btn-skip {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.inquiry-btn-skip:hover {
    background: #f5f5f5;
}

.inquiry-btn-submit {
    background: linear-gradient(135deg, #00bcd4, #00a0b4);
    color: white;
}

.inquiry-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* Hint Text */
.inquiry-hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inquiry-hint i {
    color: #00bcd4;
}

/* Success Message */
.inquiry-success {
    text-align: center;
    padding: 1rem;
}

.inquiry-success-icon {
    font-size: 4rem;
    color: #00bcd4;
    margin-bottom: 1rem;
}

.inquiry-success h2 {
    color: #0a2647;
    margin-bottom: 0.5rem;
}

.inquiry-success p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.inquiry-progress {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inquiry-progress-bar {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.inquiry-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #0a2647);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.inquiry-progress-text {
    font-size: 0.85rem;
    color: #888;
}

/* Service Options Container */
.inquiry-options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Service Option Buttons */
.inquiry-option-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inquiry-option-btn:hover {
    border-color: #00bcd4;
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    transform: translateX(5px);
}

.inquiry-option-btn:active {
    transform: translateX(5px) scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .inquiry-step-modal {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .inquiry-greeting {
        font-size: 1.5rem;
    }

    .inquiry-input {
        font-size: 1rem;
    }

    .inquiry-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .inquiry-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-10px);
    }

    40%,
    80% {
        transform: translateX(10px);
    }
}