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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
    box-sizing: border-box;
}

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

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

.form-section {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.section-title {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    width: 100%;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

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

.form-group {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.form-group:before {
    position: absolute;
    left: 0;
    color: var(--dark-gray);
    font-size: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--secondary-color);
    width: 100%;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: calc(100% - 24px);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

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

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

.btn-generate {
    background-color: #2ecc71;
    color: white;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .form-section {
        padding: 15px;
    }

    .form-group {
        width: calc(100% - 15px);
    }
}

.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;
}