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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url(img/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.container {
    margin-top: 25%;
    text-align: center;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-in;
}

.form {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.form-title {
    font-size: 1.75rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffd700' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-select option {
    background: #1e3a8a;
    color: #fff;
}

.form-radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.form-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background-color: rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.form-radio-label:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-radio-label:has(.form-radio:checked) {
    border-color: #ffd700;
    background-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.4);
}

.form-radio-label:has(.form-radio:checked) .form-radio-text {
    color: #ffd700;
    font-weight: 500;
}

.form-radio {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #ffd700;
    cursor: pointer;
    flex-shrink: 0;
}

.form-radio-text {
    color: #ffed4e;
    font-size: 0.95rem;
}

.form-label {
    display: block;
    color: #ffed4e;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ffd700;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.form-button {
    width: 100%;
    padding: 0.875rem;
    background-color: #ffd700;
    color: #1e3a8a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.form-button:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}

.form-button:active {
    transform: translateY(0);
}

.content {
    animation: fadeIn 0.8s ease-in;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.title {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffed4e;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.loader {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ffd700;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    40% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

.footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
}

.footer-text {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 400;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
    }
    
    .form {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .footer-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group-half {
        margin-bottom: 1.5rem;
    }
    
    .form-row .form-group-half:last-child {
        margin-bottom: 0;
    }
    
    .form {
        padding: 1.25rem;
    }
    
    .form-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.65rem;
        font-size: 0.95rem;
    }
    
    .form-button {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .loader {
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}
