/* Specific overrides for Contact page */

/* Floating Input Styles */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
}

.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    color: #60a5fa;
    background: #1a1a2e;
    /* Matches background roughly to hide border line behind label if needed, or transparent if nice */
    transform: translateY(0);
}

/* Adjust textarea label position */
textarea.form-input~.form-label {
    top: 20px;
    transform: none;
}

textarea.form-input:focus~.form-label,
textarea.form-input:not(:placeholder-shown)~.form-label {
    top: -12px;
    transform: none;
}

/* Social Card Hover */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.submit-btn:hover::after {
    transform: translateX(100%);
}

@media (max-width: 640px) {
    .contact-form-container {
        padding: 1.5rem;
    }

    .form-input {
        font-size: 16px;
        /* Prevents iOS zoom */
    }
}