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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(232, 255, 0, 0.6);
    border-radius: 6px;
    color: #e8ff00;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(232, 255, 0, 0.15);
    border-color: #e8ff00;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 50px 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e8ff00, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle {
    font-size: 1.1rem;
    color: #999;
}

.event-form {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.checkbox-group {
    justify-content: flex-end;
}

label {
    color: #e8ff00;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #e8ff00;
    background: rgba(232, 255, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(232, 255, 0, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 50px;
}

option {
    background: #1a1a1a;
    color: #fff;
}

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

.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    padding: 0 14px;
}

.checkbox-pill input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    accent-color: #e8ff00;
    cursor: pointer;
}

.checkbox-pill span {
    color: #fff;
    font-size: 0.95rem;
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 10px;
    overflow: hidden;
}

.file-upload:hover {
    border-color: #e8ff00;
    background: rgba(232, 255, 0, 0.1);
}

.file-upload.has-preview {
    border-color: #4ade80;
    min-height: 220px;
}

.file-upload.has-preview:hover {
    border-color: #4ade80;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    width: 100%;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-main-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
}

.upload-sub-text {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.upload-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
}

.upload-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.upload-preview .file-name {
    color: #cfcfcf;
    font-size: 0.9rem;
    text-align: center;
    word-break: break-word;
}

.submit-btn {
    background: linear-gradient(135deg, #e8ff00, #b8d600);
    color: #000;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(232, 255, 0, 0.4);
}

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

.message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.message.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

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

    .form-title {
        font-size: 2.2rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .event-form {
        padding: 25px;
        border-radius: 15px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    input,
    select,
    textarea {
        padding: 12px 15px;
        font-size: 16px;
    }

    .upload-icon {
        font-size: 1.8rem;
    }

    .upload-main-text {
        font-size: 0.95rem;
    }

    .upload-sub-text {
        font-size: 0.8rem;
    }

    .submit-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 12px 25px 12px;
    }

    .event-form {
        padding: 20px;
    }

    .form-title {
        font-size: 1.9rem;
    }
}
