/* frontend/contact/contact.css */

/* --- Custom Scrollbar (Theme Match) --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050514; }
::-webkit-scrollbar-thumb { background: #6a28d4; border-radius: 10px; border: 2px solid #050514; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }
html { scrollbar-width: thin; scrollbar-color: #6425c9 #050514; }

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #0F0F1A;
    color: white;
}

/* Navbar Styles & Animation */
.capsule-nav {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ADDED: Smooth transition for hide/show */
#main-header {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ADDED: Class to hide header */
.header-hidden {
    transform: translateY(-100%);
}

/* --- GLOW CARD EFFECT --- */
.glow-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
  border-radius: 1.5rem; 
  overflow: hidden;
  isolation: isolate; 
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glow-card:hover {
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 15px 50px -10px rgba(139, 92, 246, 0.4);
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(139, 92, 246, 0.15), 
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glow-card:hover::after { 
    opacity: 1; 
}

/* --- Floating Label Inputs --- */
.input-group { position: relative; margin-bottom: 1.5rem; }

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem 1rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    height: 56px; 
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

textarea.input-field {
    height: auto;
    min-height: 150px;
    padding-top: 1.5rem;
    resize: none;
}

textarea.input-field::-webkit-scrollbar { display: none; }
textarea.input-field { -ms-overflow-style: none; scrollbar-width: none; }

.input-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Animation */
.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
    top: 0.25rem;
    left: 1rem;
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #151520;
    padding: 0 6px;
    border-radius: 4px;
    z-index: 10;
}

/* Error Text */
.error-text {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 320px; 
    padding: 1rem 1.5rem;
    border-radius: 24px; 
    background: rgba(20, 20, 35, 0.85); 
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(100%);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-bottom: 3px solid #10b981; }
.toast.error { border-bottom: 3px solid #ef4444; }