:root {
    --primary: #3b5998;
    --primary-dark: #2d4373;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #3b5998, #8b9dc3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a237e;
}

.header h2 {
    color: #22c55e;
    font-size: 24px;
    margin-bottom: 16px;
}

.header p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.4;
    opacity: 0.9;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    pointer-events: none;
}

.form-input,
.form-select {
    width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(10px, 2vw, 12px) clamp(10px, 2vw, 12px) 40px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: clamp(14px, 2.5vw, 16px);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: clamp(13px, 2vw, 15px);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.2);
}

.form-input:focus + .input-icon,
.form-select:focus + .input-icon {
    fill: var(--primary);
}

#phone {
    letter-spacing: 1px;
    font-family: monospace;
}

button {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.3);
}

button:active {
    transform: translateY(0);
}

.error {
    border-color: #ef4444 !important;
    animation: shake 0.5s linear;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    position: absolute;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25%, 75% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
}

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

    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-input,
    .form-select {
        padding: 10px 10px 10px 36px;
    }

    .input-icon {
        width: 18px;
        height: 18px;
        left: 10px;
    }
}

@media (min-width: 1200px) {
    .form-input,
    .form-label,
    .form-select {
        font-size: 16px;
    }
}
