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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 650px;
    margin: 20px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

fieldset {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #0066cc;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.image-preview-container {
    margin-bottom: 15px;
}

.image-preview-box {
    width: 100%;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    overflow: hidden;
    margin-bottom: 10px;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.field-error {
    color: #d9534f;
    font-size: 0.82rem;
    margin-top: 4px;
}

.error-summary {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.submit-btn,
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.submit-btn:hover,
.btn:hover {
    background-color: #0052a3;
}

.status-card {
    text-align: center;
    padding: 40px 20px;
}

.status-icon {
    font-size: 50px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
}

.success-card .status-icon {
    background-color: #28a745;
}

.error-card .status-icon {
    background-color: #dc3545;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}
