* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f0ebf8;
    color: #202124;
    line-height: 1.6;
    padding: 20px 10px;
}

.container {
    max-width: 760px;
    margin: 0 auto;
}

/* Header */
.form-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 12px;
    border-top: 10px solid #673ab7;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
}

.required-note {
    color: #d93025;
    font-size: 14px;
    margin-top: 8px;
}

/* Intro section */
.intro-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 12px;
}

.intro-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-section a {
    color: #673ab7;
    text-decoration: none;
}

.intro-section a:hover {
    text-decoration: underline;
}

.logo-container {
    text-align: center;
    padding: 20px 0;
}

.logo {
    max-width: 300px;
    height: auto;
}

/* Objective section */
.objective-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 12px;
}

.objective-section h2 {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 16px;
}

.objective-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Form */
.feep-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #202124;
}

.required {
    color: #d93025;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    max-width: 500px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #dadce0;
    font-size: 14px;
    font-family: inherit;
    background-color: transparent;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-bottom: 2px solid #673ab7;
}

.form-group input::placeholder {
    color: #70757a;
}

/* Checkboxes */
.checkbox-group {
    margin-top: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    min-height: 32px;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-option label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
    flex: 1;
}

.checkbox-with-text {
    align-items: center;
}

.inline-text-input {
    margin-left: 8px;
    padding: 4px 8px;
    border: none;
    border-bottom: 1px solid #dadce0;
    font-size: 14px;
    background-color: transparent;
    flex: 1;
    max-width: 300px;
}

.inline-text-input:focus {
    outline: none;
    border-bottom: 2px solid #673ab7;
}

/* Data protection section */
.data-protection-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.data-protection-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.data-protection-section p {
    font-size: 13px;
    line-height: 1.6;
    color: #5f6368;
}

.data-protection-section a {
    color: #1a73e8;
    text-decoration: none;
}

.data-protection-section a:hover {
    text-decoration: underline;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.submit-btn,
.clear-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.submit-btn {
    background-color: #673ab7;
    color: white;
}

.submit-btn:hover {
    background-color: #5e35b1;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.submit-btn:disabled {
    background-color: #dadce0;
    color: #80868b;
    cursor: not-allowed;
}

.clear-btn {
    background-color: transparent;
    color: #673ab7;
}

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

/* Messages */
.success-message,
.error-message {
    margin-top: 12px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
}

.success-message {
    color: #137333;
    border-left: 4px solid #137333;
}

.error-message {
    color: #c5221f;
    border-left: 4px solid #c5221f;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 12px 8px;
    }

    .form-header {
        padding: 20px 16px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .intro-section,
    .objective-section,
    .feep-form {
        padding: 20px 16px;
    }

    .logo {
        max-width: 200px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        max-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .clear-btn {
        width: 100%;
    }

    .inline-text-input {
        max-width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .checkbox-with-text {
        flex-wrap: wrap;
    }
}

/* Input validation styles */
input:invalid:not(:placeholder-shown) {
    border-bottom-color: #d93025;
}

input:valid:not(:placeholder-shown) {
    border-bottom-color: #137333;
}

/* Focus states */
input[type="checkbox"]:focus {
    outline: 2px solid #673ab7;
    outline-offset: 2px;
}
