* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
}

.title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.title h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 600;
}

.title p {
    color: #666666;
    font-size: 1em;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.form-group textarea#prompt {
    max-height: 300px;
    min-height: 200px;
    overflow-y: auto;
}

.form-group textarea#prolog {
    min-height: 150px;
    max-height: none;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: #000000;
    color: white;
    border: 1px solid #000000;
    padding: 14px 24px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #333333;
}

.submit-btn:active {
    transform: translateY(1px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .title h1 {
        font-size: 1.5em;
    }
    
    .form-row,
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
    }
}

.form-group input[type="text"]:placeholder-shown,
.form-group textarea:placeholder-shown {
    background: #fafafa;
}

.icon {
    margin-right: 8px;
    opacity: 0.7;
}

.char-count {
    text-align: right;
    font-size: 0.85em;
    color: #666666;
    margin-top: 5px;
    font-weight: 400;
}