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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #0ff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-card {
    background: rgba(0, 20, 20, 0.9);
    border: 3px solid #0ff;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.5),
                    inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    to {
        box-shadow: 0 0 60px rgba(0, 255, 255, 0.7),
                    inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

.title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #0ff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8),
                 0 0 40px rgba(0, 255, 255, 0.5);
    letter-spacing: 3px;
    animation: text-flicker 3s infinite;
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    75% { opacity: 0.98; }
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #0ff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0ff;
    border-radius: 8px;
    color: #0ff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6),
                inset 0 0 10px rgba(0, 255, 255, 0.1);
    background: rgba(0, 20, 20, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

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='%2300ffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

select option {
    background: #001414;
    color: #0ff;
}

.error-message {
    display: block;
    color: #ff0055;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0ff, #00cc99);
    border: 3px solid #0ff;
    border-radius: 10px;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7),
                0 0 60px rgba(0, 255, 255, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    animation: btn-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.7),
                    0 0 60px rgba(0, 255, 255, 0.4),
                    inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.9),
                    0 0 80px rgba(0, 255, 255, 0.6),
                    inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btn-shine 3s linear infinite;
}

@keyframes btn-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 255, 255, 1),
                0 0 100px rgba(0, 255, 255, 0.7),
                inset 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: #00ffff;
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 20, 0.95);
    border: 2px solid #0ff;
    border-radius: 8px;
    padding: 15px 30px;
    z-index: 1000;
    transition: top 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    min-width: 300px;
    text-align: center;
}

.notification.show {
    top: 30px;
}

.notification.success {
    border-color: #0f0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.notification.success .notification-text {
    color: #0f0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.notification.error {
    border-color: #f00;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.notification.error .notification-text {
    color: #f00;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.notification-text {
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer {
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 20, 20, 0.5);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-credit {
    font-size: 1rem;
    color: #0ff;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-credit .creator {
    font-weight: bold;
    color: #0ff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: text-flicker 3s infinite;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(0, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.thank-you-modal.show {
    display: flex;
}

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

.thank-you-content {
    background: rgba(0, 20, 20, 0.95);
    border: 3px solid #0ff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.8),
                inset 0 0 30px rgba(0, 255, 255, 0.1);
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border: 4px solid #0f0;
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6),
                inset 0 0 20px rgba(0, 255, 0, 0.2);
    animation: checkmark-pop 0.6s ease 0.2s both;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 25px;
    height: 50px;
    border: solid #0f0;
    border-width: 0 6px 6px 0;
    animation: checkmark-draw 0.4s ease 0.4s both;
}

@keyframes checkmark-draw {
    0% {
        height: 0;
        width: 0;
        opacity: 0;
    }
    50% {
        height: 50px;
        width: 0;
        opacity: 1;
    }
    100% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 2.5rem;
    color: #0ff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    letter-spacing: 3px;
    animation: text-flicker 3s infinite;
}

.thank-you-text {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.thank-you-subtext {
    font-size: 1rem;
    color: rgba(0, 255, 255, 0.7);
    margin-bottom: 30px;
}

.close-modal-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #0ff, #00cc99);
    border: 2px solid #0ff;
    border-radius: 8px;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .form-card {
        padding: 25px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    input,
    textarea,
    select {
        font-size: 0.9rem;
    }
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}
