* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 500px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-image {
    width: 100%;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.form-container {
    padding: 30px 25px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    min-width: 40px;
}

.label-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.required {
    color: #ff0000;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #4285f4;
}

.form-group input::placeholder {
    color: #bbb;
}

.checkbox-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.agreement-link {
    color: #4285f4;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #4285f4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #3367d6;
}

.submit-btn:active {
    background-color: #2851a3;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content p {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
}

.modal-close {
    padding: 10px 30px;
    background-color: #4285f4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: #3367d6;
}

@media (max-width: 600px) {
    .container {
        border-radius: 0;
    }
    
    .form-container {
        padding: 25px 20px;
    }
}
