/* Hero Section - Same height as home and courses pages */
.contact-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Hero wallpaper and image - matching home page */
.hero-wallpaper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border: none !important;
  outline: none !important;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: none !important;
  outline: none !important;
  padding: 0;
  margin: 0;
  display: block;
}

/* Bottom wave separator */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.contact-hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.contact-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Floating Elements Animation */
.floating-element {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-element:hover {
    opacity: 0.3;
    transform: scale(1.2);
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main Content Container */
.contact-main {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
}

.contact-cards-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Equal Height Cards */
.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 40px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc3545, #c82333, #dc3545);
    border-radius: 20px;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.contact-card:hover::before { opacity: 1; }
.contact-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(220, 53, 69, 0.2); }

/* Form Card Specific */
.form-card { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); }
.form-card h2 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}
.form-card .subtitle { text-align: center; color: #6c757d; margin-bottom: 2rem; font-size: 1.1rem; }

/* Form Styling */
.form-group { margin-bottom: 25px; position: relative; z-index: 10; animation: slideInLeft 0.6s ease-out; }
.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

#contactForm { position: relative; z-index: 10; }
.form-label { font-weight: 600; color: #333; margin-bottom: 8px; display: block; font-size: 1rem; }
.form-control { border: 2px solid #e9ecef; border-radius: 12px; padding: 15px 20px; font-size: 16px; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.8); position: relative; z-index: 10; }
.form-control:focus { border-color: #dc3545; box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.15); background: white; transform: translateY(-2px) scale(1.01); }
.form-control:hover { border-color: rgba(220, 53, 69, 0.3); transform: translateY(-1px); }

.btn-submit {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none; color: white; padding: 18px 40px; font-size: 18px; font-weight: 600; border-radius: 12px;
    transition: all 0.3s ease; width: 100%; position: relative; overflow: hidden;
}
.btn-submit::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s;
}
.btn-submit:hover::before { left: 100%; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4); }

/* Info Card Specific */
.info-card { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); color: white; position: relative; }
.info-card::after {
    content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); pointer-events: none;
}
.info-card h3 { font-size: 2.2rem; font-weight: 700; margin-bottom: 2rem; text-align: center; color: white; }
.contact-item { display: flex; align-items: center; margin-bottom: 25px; padding: 15px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.contact-item:hover { background: rgba(255, 255, 255, 0.2); transform: translateX(10px); }
.contact-item i { color: white; font-size: 24px; margin-right: 20px; width: 30px; text-align: center; }
.contact-item strong { display: block; font-size: 1.1rem; margin-bottom: 5px; }
.contact-item a { color: white; text-decoration: none; transition: all 0.3s ease; }
.contact-item a:hover { color: #ffebee; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }

/* Loading Animation */
.loading { display: none; }
.loading.show { display: inline-block; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero h1 { font-size: 2.5rem; }
    .contact-hero p { font-size: 1.1rem; }
    .contact-card { margin-bottom: 30px; }
}
@media (max-width: 576px) {
    .contact-hero { min-height: 500px; }
    .contact-hero h1 { font-size: 2rem; }
}


