/* static/css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23e0e0e0'/%3E%3Cpath d='M20,50 L35,35 L65,35 L80,50 L65,65 L35,65 Z' fill='%23d0d0d0'/%3E%3Ccircle cx='30' cy='65' r='7' fill='%23c0c0c0'/%3E%3Ccircle cx='70' cy='65' r='7' fill='%23c0c0c0'/%3E%3C/svg%3E") repeat;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: normal;
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.2em;
        white-space: normal;
        text-overflow: clip;
    }
}

h2 {
    color: #3498db;
    font-size: 1.8em;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #7f8c8d;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
select {
    width: calc(100% - 22px); /* 减去padding */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #3498db;
    outline: none;
}

button {
    background-color: #f0c419; /* 香槟金色 */
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d6a70d; /* 香槟金色深一点的色调 */
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f4fc;
    border-radius: 5px;
    border-left: 5px solid #3498db;
}

.error {
    color: #e74c3c;
    background-color: #fdeded;
    border-left-color: #e74c3c;
}

.success {
    color: #27ae60;
    background-color: #eafaf1;
    border-left-color: #27ae60;
}

.hidden {
    display: none;
}