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

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

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

/* Header */
header {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher a {
    padding: 5px 10px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-switcher a:hover {
    background-color: #f0f0f0;
}

.lang-switcher a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Form Styles */
form {
    margin-top: 20px;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

legend {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    padding: 0 10px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.required {
    color: #dc3545;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

input:invalid {
    border-color: #dc3545;
}

small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
}

.btn-link:hover {
    color: #0056b3;
}

/* Consent Styles */
.consent-group {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

.consent-text {
    flex: 1;
    font-weight: 500;
}

.consent-full-text {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Code Status */
.code-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.code-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.code-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.code-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Messages */
.message-container {
    margin-top: 20px;
}

.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    fieldset {
        padding: 15px;
    }

    .btn-secondary {
        width: 100%;
    }
}

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

/* Success Page */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h1 {
    color: #28a745;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

/* Accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

