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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f0e8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0d8cc;
    max-width: 560px;
    width: 100%;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.back-home {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}

.back-home:hover {
    color: #c1440e;
    background: #fff5f0;
    transform: translateX(-2px);
    border-color: #c1440e;
}

.back-home svg {
    width: 20px;
    height: 20px;
}

header h1 {
    font-size: 2rem;
    color: #c1440e;
    margin: 0;
    font-weight: 700;
}

.language-switcher {
    position: absolute;
    right: 0;
}

.language-select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #333;
    cursor: pointer;
}

.subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Honeypot: invisible to users */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-honeypot input {
    position: absolute;
    left: -9999px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.required {
    color: #c53030;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c1440e;
    box-shadow: 0 0 0 2px rgba(193, 68, 14, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #c53030;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.textarea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.field-error {
    font-size: 0.85rem;
    color: #c53030;
}

.char-count {
    font-size: 0.85rem;
    color: #718096;
}

.char-count.warn {
    color: #c05621;
}

.form-actions {
    margin-top: 8px;
}

.submit-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #c1440e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(193, 68, 14, 0.35);
}


.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message-box {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.message-box.hidden {
    display: none;
}

.message-box.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message-box.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
