:root {
    --primary: #d4a574;
    --secondary: #8b5a2b;
    --light: #f8f4e9;
    --dark: #5a3b1a;
    --border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    margin-bottom: 25px;
    border-radius: 6px;
}

h1, h2 {
    margin-bottom: 15px;
}

form {
    margin-top: 20px;
}

#form {
    width: 100%;
    border-collapse: collapse;
}

#form td {
    padding: 12px 0;
    vertical-align: top;
}

.col1 {
    width: 30%;
    font-weight: bold;
    color: var(--dark);
}

.col2 {
    width: 70%;
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Иконки валидации */
.fa-check,
.fa-times {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    font-size: 18px;
}

/* Галочка — зелёная */
input:valid:not(:placeholder-shown) + .fa-check {
    display: block;
    color: #28a745;
}

/* Крестик — красный */
input:invalid:not(:placeholder-shown) + .fa-times {
    display: block;
    color: #dc3545;
}

/* Сообщения об ошибках */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

input:invalid:not(:placeholder-shown) + .fa-times + .error-message {
    display: block;
}

/* Кнопки */
.button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    margin-right: 10px;
}

.button:hover:not(:disabled) {
    background-color: var(--secondary);
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.reset {
    background-color: #6c757d;
}

.reset:hover {
    background-color: #5a6268;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Подсказки (hint) — не нужны, т.к. текст ошибки в .error-message */