/* 模态框样式 */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

/* 二维码模态框特定样式 */
.qr-container {
    text-align: center;
    padding: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 10px solid white;
    border-radius: 10px;
    background: white;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* 预约表单样式 */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-label span {
    color: #e74c3c;
    margin-left: 3px;
}

.form-input {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* 按钮样式 */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

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

/* 通知样式 */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-left: 4px solid #2ecc71;
}

.notification-error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-left: 4px solid #e74c3c;
}

.notification-info {
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-left: 4px solid #3498db;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
    .notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* 联系信息更新样式 */
.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info .info-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.contact-info .info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
}

.contact-info .info-item span {
    color: var(--text-color);
    font-size: 1rem;
}

/* 按钮容器样式 */
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        width: 100%;
        text-align: center;
    }
}