/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 575px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 24px 0;
    border-bottom: none;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #100f11;
    margin: 0;
}

.modal-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 24px;
    color: #667085;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #100f11;
}

.modal-body {
    padding: 0 40px 24px;
}
.modal-body h2{
    text-align: center;
    font-size: 28px;
    font-family: bold;
    color:#2A2A2A;
    margin-bottom: 8px;
}
.modal-description {
    font-size: 20px;
    color: #7B7B7B;
    margin: 0 0 20px 0;
    line-height: 1.6;
    text-align: center;
}

.modal-description .phone-number {
    color: #306bea;
    font-weight: 500;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group:last-of-type {
    margin-bottom: 24px;
}

.modal-input {
    width: 100%;
    height: 64px;
    padding: 0 16px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 18px;
    color: #100f11;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: #306bea;
}

.modal-input::placeholder {
    color: #acacac;
}

.input-with-button {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.input-with-button .modal-input {
    flex: 1;
}

.get-code-btn {
    flex-shrink: 0;
    color: #667085;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    position: absolute;
    right:16px;
    top:13px;
    background-color: transparent;
}

.get-code-btn:hover:not(:disabled) {
    background-color: #2558d1;
}

.get-code-btn:disabled {
    background-color: #abbdf3;
    cursor: not-allowed;
}

.modal-textarea {
    width: 100%;
    min-height: 180px;
    margin-top:10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #e2e6ef;
    border-radius: 10px;
    font-size: 18px;
    color: #100f11;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.modal-textarea:focus {
    outline: none;
    border-color: #306bea;
}

.modal-textarea::placeholder {
    color: #acacac;
}

.modal-submit-btn {
    width: 200px;
    height: 64px;
    background-color: #306bea;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin:0 auto;
    display: block;
}

.modal-submit-btn:hover {
    background-color: #2558d1;
}

.modal-submit-btn:active {
    background-color: #1e4bb8;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }

    .modal-header {
        padding: 16px 20px;
    }

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

    .modal-body {
        padding: 20px;
    }

    .input-with-button {
        flex-direction: column;
        gap: 12px;
    }

    .input-with-button .modal-input,
    .input-with-button .get-code-btn {
        width: 100%;
    }

    .modal-textarea {
        min-height: 150px;
    }
}