* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 650px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 24px;
}

p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

fieldset {
    border: none;
    margin-bottom: 25px;
}

legend {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    width: 100%;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #611efd;
}

textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #611efd;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #d35400;
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
}
