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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
    padding: 40px;
    position: relative;
    z-index: 1;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #ff1493;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ffb6c1;
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    color: #d1477d;
}

/* Language Selection Styles */
.language-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 235, 238, 0.5)) !important;
    border-left: 4px solid #ffd700 !important;
}

.language-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.language-option {
    cursor: pointer;
}

.language-option input[type="radio"] {
    display: none;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: white;
    border: 3px solid #ffc0cb;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
}

.language-option input[type="radio"]:checked + .language-card {
    border-color: #ff69b4;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 20, 147, 0.1));
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transform: translateY(-2px);
}

.language-card:hover {
    border-color: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

.language-flag {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.language-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #d1477d;
}

.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 235, 238, 0.5), rgba(255, 250, 250, 0.5));
    border-radius: 12px;
    border-left: 4px solid #ffb6c1;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.1);
}

.form-section h2 {
    font-size: 1.5em;
    color: #d1477d;
    margin-bottom: 20px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d1477d;
    font-size: 0.95em;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffc0cb;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    background: white;
}

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

.char-count {
    display: block;
    text-align: right;
    font-size: 0.85em;
    color: #ff69b4;
    margin-top: 5px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #ff69b4;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

.error-message {
    background: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .form-row,
    .checkbox-group,
    .language-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    .form-section {
        padding: 15px;
    }

    .language-flag {
        font-size: 2em;
    }
}
