/* Premium Contact Page Animations */
@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes edvoraGradientFlow {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes statFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes formSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgShapeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: badgeShimmer 3s infinite;
}

@keyframes badgeShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    min-width: 180px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: statFloat 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stat .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-yellow);
    margin-bottom: 5px;
    display: block;
}

.hero-stat .label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Section Background Elements */
.bg-shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(31, 143, 255, 0.05), rgba(31, 143, 255, 0.05));
    border-radius: 50%;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation: bgShapeFloat 8s infinite ease-in-out;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: bgShapeFloat 10s infinite ease-in-out 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation: bgShapeFloat 12s infinite ease-in-out 4s;
}

/* Premium Contact Card Styles (Matching Courses) */
.premium-contact-form,
.premium-info-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-contact-form:hover,
.premium-info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.08);
}

.premium-contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1F8FFF, #1F8FFF, #1F8FFF);
    animation: formBorderFlow 3s infinite;
}

@keyframes formBorderFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(31, 143, 255, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(31, 143, 255, 0);
    }
}

.form-subtitle {
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Info Refinements */
.premium-info-card h4 {
    position: relative;
    padding-bottom: 15px;
}

.premium-info-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--brand-blue, #1F8FFF);
    border-radius: 2px;
}

.contact-item {
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 12px;
}

.contact-item:hover {
    background: rgba(31, 143, 255, 0.03);
    transform: translateX(8px);
}

.contact-item h6 {
    color: #222;
    margin-bottom: 4px;
}

.contact-item p {
    color: #555 !important;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-box {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Premium Form Inputs */
.premium-input-group {
    margin-bottom: 2rem;
    position: relative;
}

.premium-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.optional {
    color: #999;
    font-weight: 400;
}

.input-container,
.select-container,
.textarea-container {
    position: relative;
}

.premium-input,
.premium-select,
.premium-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.premium-input:focus,
.premium-select:focus,
.premium-textarea:focus {
    outline: none;
    border-color: #1F8FFF;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(31, 143, 255, 0.1);
}

.input-border,
.select-border,
.textarea-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF, #1F8FFF);
    background-clip: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-input:focus+.input-border,
.premium-select:focus+.select-border,
.premium-textarea:focus+.textarea-border {
    opacity: 1;
}

.input-focus-effect,
.textarea-focus-effect {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1F8FFF, #1F8FFF);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.premium-input:focus~.input-focus-effect,
.premium-textarea:focus~.textarea-focus-effect {
    width: calc(100% - 3rem);
}

.input-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.premium-input:focus~.input-icon {
    color: #1F8FFF;
}

.select-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.premium-select:focus+.select-border+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #1F8FFF;
}

/* Premium Submit Button */
.form-submit-container {
    text-align: center;
    margin-top: 3rem;
}

.premium-submit-btn {
    position: relative;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.btn-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
}

.layer-1 {
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF);
}

.layer-2 {
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.layer-3 {
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-submit-btn:hover .layer-2 {
    opacity: 1;
}

.premium-submit-btn:active .layer-3 {
    opacity: 1;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.premium-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.premium-submit-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1F8FFF, #1F8FFF, #1F8FFF);
    border-radius: 50px;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.premium-submit-btn:hover .btn-glow {
    opacity: 0.7;
}

.gradient-text-animated {
    background: linear-gradient(90deg, #1F8FFF, #FFA07A, #1F8FFF, #1F8FFF);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item-hero {
        justify-content: center;
    }

    .contact-icon-3d {
        width: 150px;
        height: 150px;
    }

    .icon-face {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .icon-face.front,
    .icon-face.back,
    .icon-face.left,
    .icon-face.right,
    .icon-face.top,
    .icon-face.bottom {
        transform-origin: center;
    }

    .icon-face.front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .icon-face.back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .icon-face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .icon-face.right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .icon-face.top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .icon-face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .ring-1 {
        width: 200px;
        height: 200px;
    }

    .ring-2 {
        width: 250px;
        height: 250px;
    }

    .ring-3 {
        width: 300px;
        height: 300px;
    }

    .premium-contact-form {
        padding: 2rem;
        margin: 1rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}