/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Header */
.header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    /* border-bottom: 1px solid #646464; */
}

.logo {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.logo img {
    height: 40px;
    width: auto;
}


.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.section:first-child {
    border-top: none;
    padding-top: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field {
    margin-bottom: 25px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.field-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: #000;
}

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

/* Radio & Checkbox */
.field-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option input[type="radio"],
.option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option label {
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.submit-button {
    background: #000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-button:hover {
    background: #333;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.success-message h3 {
    margin-bottom: 10px;
}

/* Loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Auto-save message */
.auto-save-message {
    text-align: center;
    padding: 12px;
    margin-top: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Clear draft button */
.clear-draft-button {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.clear-draft-button:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .title {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }
}
