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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.form-card {
    background: rgba(26, 32, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-option {
    position: relative;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #e2e8f0;
}

.radio-label:hover {
    background: #374151;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #718096;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

input[type="radio"]:checked + .radio-label .radio-custom {
    border-color: white;
    background: white;
}

input[type="radio"]:checked + .radio-label .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="tel"], input[type="text"], textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #4a5568;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #2d3748;
    color: #e2e8f0;
    font-family: inherit;
}

input[type="tel"]:focus, input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #374151;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

input[type="tel"]::placeholder, input[type="text"]::placeholder, textarea::placeholder {
    color: #a0aec0;
}

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

.help-text {
    display: block;
    margin-top: 5px;
    color: #a0aec0;
    font-size: 0.9em;
    font-style: italic;
}

.char-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 0.9em;
    color: #a0aec0;
}

.char-counter.warning {
    color: #ff9800;
    font-weight: 600;
}

.char-counter.danger {
    color: #f44336;
    font-weight: 600;
}

.message-preview {
    margin-bottom: 25px;
    padding: 20px;
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 12px;
    animation: fadeIn 0.4s ease-out;
}

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

.message-preview h3 {
    color: #e2e8f0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.preview-content {
    background: #2d3748;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
    font-style: italic;
    color: #cbd5e0;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

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

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.response-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-message.success {
    background: #1f2937;
    border: 2px solid #10b981;
    color: #10b981;
}

.response-message.error {
    background: #1f2937;
    border: 2px solid #ef4444;
    color: #ef4444;
}

.message-content {
    font-weight: 500;
}

@media (max-width: 600px) {
    .form-card {
        padding: 30px 25px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .radio-label {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}