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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a2463 0%, #4189DD 50%, #ffffff 100%),
                repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255,255,255,.05) 50px, rgba(255,255,255,.05) 100px);
    background-blend-mode: overlay;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow: auto;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 50% 20%, rgba(65,137,221,0.08) 3px, transparent 3px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
    animation: slide 6s linear infinite, slideReverse 10s linear infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 30%, rgba(10,36,99,0.06) 2px, transparent 2px);
    background-size: 70px 70px, 90px 90px;
    animation: slideReverse 8s linear infinite;
    pointer-events: none;
}

@keyframes slide {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes slideReverse {
    0% { background-position: 50px 50px; }
    100% { background-position: 0 0; }
}

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

.form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    padding: 28px 38px 32px;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35),
                0 10px 30px rgba(65, 137, 221, 0.2);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.6s ease, pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35),
                    0 10px 30px rgba(65, 137, 221, 0.2);
    }
    50% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                    0 10px 40px rgba(65, 137, 221, 0.35),
                    0 0 60px rgba(65, 137, 221, 0.15);
    }
}

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

.logo {
    display: block;
    max-width: 110px;
    height: auto;
    margin: 0 auto 18px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo:hover {
    animation-play-state: paused;
    transform: scale(1.08) rotate(2deg);
}

h1 {
    color: #0a2463;
    margin-bottom: 6px;
    font-size: 23px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.5px;
}

.subtitle {
    color: #4189DD;
    margin-bottom: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    animation: colorShift 5s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        color: #4189DD;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }
    50% {
        color: #0a2463;
        text-shadow: 0 2px 4px rgba(65, 137, 221, 0.3);
    }
}

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

label {
    display: block;
    margin-bottom: 7px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 14.5px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #2c3e50;
    font-family: inherit;
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
select:hover {
    border-color: #d1d9e6;
    background: #ffffff;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #4189DD;
    box-shadow: 0 0 0 4px rgba(65, 137, 221, 0.12);
    background: #ffffff;
    transform: translateY(-1px);
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.country-select {
    flex: 0 0 35%;
    min-width: unset;
}

.phone-input-group input[type="tel"] {
    flex: 1;
}

small {
    display: block;
    font-size: 12px;
}

.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label span {
    color: #555;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #4189DD 0%, #2c5aa0 50%, #0a2463 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(65, 137, 221, 0.35),
                0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(65, 137, 221, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #5299ed 0%, #3d6bb0 50%, #1a3473 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(65, 137, 221, 0.3);
}

.message {
    margin-top: 18px;
    padding: 13px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideIn 0.3s ease;
    font-size: 13.5px;
    margin-bottom: 0;
}

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

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    display: block;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    display: block;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.optional-section {
    margin-top: 24px;
    padding: 20px 15px 16px;
    border-top: 3px solid #e8ecf1;
    background: linear-gradient(135deg, rgba(65, 137, 221, 0.02) 0%, rgba(10, 36, 99, 0.03) 100%);
    border-radius: 15px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 25px;
    padding-right: 25px;
}

.optional-section h3 {
    color: #4189DD;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}

.contact-section {
    margin-top: 24px;
    padding: 20px 15px 16px;
    border-top: 3px solid #e8ecf1;
    text-align: center;
    background: linear-gradient(135deg, rgba(65, 137, 221, 0.03) 0%, rgba(10, 36, 99, 0.05) 100%);
    border-radius: 15px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 25px;
    padding-right: 25px;
}

.contact-section h3 {
    color: #0a2463;
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.social-links a {
    color: #ffffff;
    background: linear-gradient(135deg, #4189DD 0%, #2c5aa0 100%);
    padding: 9px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(65, 137, 221, 0.25);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 200px;
    letter-spacing: 0.3px;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(65, 137, 221, 0.4);
    background: linear-gradient(135deg, #5299ed 0%, #3d6bb0 100%);
}

.social-links a:active {
    transform: translateY(0);
}

.social-icon {
    font-size: 16px;
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-icon-img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.2s ease;
    filter: brightness(1.2);
}

.social-links a:hover .social-icon {
    transform: scale(1.15);
}

.social-links a:hover .social-icon-img {
    transform: scale(1.15) rotate(5deg);
}

@media (max-width: 600px) {
    .form-wrapper {
        padding: 28px 25px 30px;
    }

    h1 {
        font-size: 22px;
    }

    .container {
        max-width: 95%;
    }

    .contact-section {
        margin-left: -5px;
        margin-right: -5px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .social-links a {
        min-width: 180px;
        font-size: 12.5px;
        padding: 9px 16px;
    }

    .social-icon-img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
}

/* Placeholder styles */
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

input[type="text"]:focus::placeholder,
input[type="tel"]:focus::placeholder,
input[type="email"]:focus::placeholder,
input[type="number"]:focus::placeholder {
    color: #c5c5c5;
}

/* Social handle input with @ symbol */
.at-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4189DD;
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
}

.social-handle-input {
    padding-left: 33px !important;
}
