/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

label .required-star {
    color: #e74c3c;
    margin-left: 4px;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

input.error,
textarea.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.photo-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s;
}

.photo-zone:hover {
    border-color: #667eea;
    background: #f5f3ff;
}

.photo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.photo-text {
    color: #666;
}

.photo-optional {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

#fileInput {
    display: none;
}

#preview {
    margin-top: 16px;
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
}

#preview img {
    width: 100%;
    height: auto;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    min-height: 100px;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    display: none;
}

.message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}