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

:root {
    --text: #f1f5f9;
    --primary: #e5b842;
    --primary-rgb: 229, 184, 66;
    --secondary: #fdf0a6;
    --secondary-rgb: 253, 240, 166;
    --accent: #2ecc71;
    --accent-rgb: 46, 204, 113;
}

html {
    font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.5;
}

body {
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

::-moz-selection {
    background: var(--primary);
    color: #000;
}

::selection {
    background: var(--primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ffffff26;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff40;
}

.app {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px 16px;
    position: relative;
}

.bg-layer {
    background-color: #0a0a0f;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.bg-layer,
.particles {
    inset: 0;
    position: fixed;
}

.particles {
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.particle {
    animation: float 20s linear infinite;
    background: var(--primary);
    border-radius: 50%;
    height: 3px;
    opacity: .2;
    position: absolute;
    width: 3px;
}

.particle:first-child {
    animation-delay: 0s;
    animation-duration: 25s;
    left: 10%;
    top: 20%;
}

.particle:nth-child(2) {
    animation-delay: -5s;
    animation-duration: 20s;
    left: 30%;
    top: 60%;
}

.particle:nth-child(3) {
    animation-delay: -10s;
    animation-duration: 30s;
    left: 50%;
    top: 30%;
}

.particle:nth-child(4) {
    animation-delay: -15s;
    animation-duration: 22s;
    left: 70%;
    top: 70%;
}

.particle:nth-child(5) {
    animation-delay: -8s;
    animation-duration: 28s;
    left: 85%;
    top: 15%;
}

.particle:nth-child(6) {
    animation-delay: -12s;
    animation-duration: 18s;
    left: 20%;
    top: 85%;
}

@keyframes float {
    0%, to {
        opacity: .2;
        transform: translate(0) scale(1);
    }
    25% {
        opacity: .4;
        transform: translate(30px, -50px) scale(1.5);
    }
    50% {
        opacity: .2;
        transform: translate(-20px, -100px) scale(1);
    }
    75% {
        opacity: .35;
        transform: translate(40px, -50px) scale(2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
    }
}

.main {
    max-width: 480px;
    position: relative;
    z-index: 3;
}

.container,
.main {
    width: 100%;
}

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

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.logo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6));
    height: 48px;
    object-fit: contain;
    width: auto;
}

.title {
    background: linear-gradient(135deg, #fff, #fdf0a6);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 2px;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #f1f5f999;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 360px;
}

.form {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(229, 184, 66, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 20px 18px;
}

.field {
    margin-bottom: 14px;
}

.field:last-of-type {
    margin-bottom: 16px;
}

.label {
    align-items: center;
    color: #f1f5f9cc;
    display: flex;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    margin-bottom: 6px;
}

.label-icon {
    color: var(--primary);
    flex-shrink: 0;
    height: 16px;
    width: 16px;
}

.label-hint {
    color: #f1f5f959;
    font-size: 11px;
    font-weight: 400;
}

.input {
    background: #ffffff0a;
    border: 1px solid rgba(229, 184, 66, 0.2);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
    padding: 10px 14px;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    width: 100%;
}

.input::-moz-placeholder {
    color: #f1f5f959;
}

.input::placeholder {
    color: #f1f5f959;
}

.input:focus {
    background: #ffffff0f;
    border-color: rgba(var(--primary-rgb), .8);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}

.input.invalid {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.textarea {
    line-height: 1.6;
    min-height: 90px;
    resize: vertical;
}

.contact-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.contact-option {
    align-items: center;
    background: #ffffff08;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    position: relative;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    width: 100%;
    text-align: left;
}

.contact-option:hover {
    background: #ffffff15;
    border-color: rgba(var(--primary-rgb), 0.4);
}

.contact-option.active {
    background: rgba(var(--primary-rgb), .15);
    border-color: rgba(var(--primary-rgb), .8);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}

.contact-option:focus-visible {
    border-color: rgba(var(--primary-rgb), .8);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .3);
}

.contact-option-icon {
    align-items: center;
    background: #ffffff0d;
    border-radius: 8px;
    display: flex;
    flex-shrink: 0;
    height: 36px;
    justify-content: center;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    width: 36px;
}

.contact-option-icon svg {
    color: #f1f5f999;
    height: 18px;
    transition: color .2s cubic-bezier(.4, 0, .2, 1);
    width: 18px;
}

.contact-option.active .contact-option-icon {
    background: rgba(var(--primary-rgb), .2);
}

.contact-option.active .contact-option-icon svg {
    color: var(--primary);
}

.contact-option-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.contact-check {
    align-items: center;
    border: 2px solid hsla(0, 0%, 100%, .15);
    border-radius: 6px;
    display: flex;
    flex-shrink: 0;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.contact-check,
.contact-check svg {
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.contact-check svg {
    height: 14px;
    opacity: 0;
    transform: scale(.5);
    width: 14px;
}

.contact-option.active .contact-check {
    background: var(--primary);
    border-color: var(--primary);
}

.contact-option.active .contact-check svg {
    color: #000;
    opacity: 1;
    transform: scale(1);
}

.submit-btn {
    background: linear-gradient(135deg, #e5b842, #fdf0a6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(229, 184, 66, 0.3);
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    overflow: hidden;
    padding: 15px 24px;
    position: relative;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(229, 184, 66, 0.5);
    transform: translateY(-2px);
}

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

.submit-content {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dynamic-field {
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.dynamic-field.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-box {
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.status-box.visible {
    display: block;
}

.status-box.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.status-box.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}
