:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --border-color: #bdc3c7;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --divider-color: #eee;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 800px;
}

.form-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.form-section {
    padding: 20px;
}

.section-title {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

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

.form-field {
    flex: 1;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 0 20px;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-clear {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.btn-clear:hover {
    background-color: #dfe6e9;
}

.btn-save {
    background-color: var(--accent-color);
    color: white;
}

.btn-save:hover {
    background-color: #2980b9;
}

.btn-generate {
    background-color: var(--success-color);
    color: white;
}

.btn-generate:hover {
    background-color: #27ae60;
}

.btn-next {
    background-color: #2b3a4a;
    color: white;
}

.btn-next:hover {
    background-color: #1a252f;
}

.message {
    display: none;
    text-align: center;
    font-weight: bold;
    margin-bottom: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.message.success {
    color: green;
    opacity: 1;
    display: block;
}

.message.error {
    color: red;
    opacity: 1;
    display: block;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .button-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        flex: 1;
        min-width: 120px;
    }
}