:root {
  /* Updated Colors to Match NT Logo */
  --primary-color: #2563eb; /* Blue - matches the T in your logo */
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #dc2626; /* Red - matches the N in your logo */
  --accent-color: #2563eb;
  --red-accent: #dc2626; /* Red accent matching logo */
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --text-dark-blue: #1e40af;
  --text-light-gray: #374151;
  --text-heading: #111827;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-light-blue: #eff6ff;
  --bg-light-red: #fef2f2;
  --bg-gradient-start: #dbeafe;
  --bg-overlay: rgba(37, 99, 235, 0.8);
  
  /* Border Colors */
  --border-light: #e5e7eb;
  --border-gray: #d1d5db;
  --border-focus: #2563eb;
  
  /* Shadow Colors */
  --shadow-light: rgba(37, 99, 235, 0.1);
  --shadow-medium: rgba(37, 99, 235, 0.15);
  --shadow-dark: rgba(37, 99, 235, 0.08);
  --shadow-popup: rgba(37, 99, 235, 0.1);
  --shadow-nav: rgba(37, 99, 235, 0.3);
  --shadow-red: rgba(220, 38, 38, 0.1);
}   

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.contact-hero {
    background-image: url('https://www.tune.com/wp-content/uploads/2024/04/ContactHero.jpg');
    background-size: cover;         /* Ensures the image covers the entire section */
    background-position: center;    /* Keeps the image centered */
    background-repeat: no-repeat;
    background-attachment: fixed;   /* Optional: adds parallax-like effect */
    
    position: relative;
    color: white;
    padding: 80px 0 60px;
    margin-top: 80px;
    text-align: center;
}

/* Optional: add a dark overlay to increase text contrast */
.contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);  /* Adjust opacity for better contrast */
    z-index: 1;
}

/* Ensure content stays on top of overlay */
.contact-hero > * {
    position: relative;
    z-index: 2;
}


.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Locations Section */
.locations-section {
    margin: 60px 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.location-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.location-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 24px;
}

.location-header h3 {
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    min-width: 20px;
}

.detail-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Form Section */
.contact-form-section {
    margin: 60px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1rem;
}

label i {
    color: var(--primary-color);
    font-size: 16px;
}

input, textarea, select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Course Dropdown Styling */
#course-dropdown {
    background: linear-gradient(135deg, var(--bg-light-blue), var(--bg-white));
    border-radius: 10px;
    padding: 20px;
    border: 2px solid var(--primary-color);
    margin-top: 10px;
}

#course-dropdown label {
    color: var(--primary-color);
    font-weight: 700;
}

#course-dropdown select {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

/* Optgroup styling */
select optgroup {
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--bg-light-blue);
    padding: 5px;
}

select option {
    padding: 8px;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
    border-left: 4px solid #28a745;
}

/* Map Section */
.map-section {
    margin: 60px 0;
    padding: 60px 0;
    background: var(--bg-white);
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.maps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.map-item h3 {
    color: var(--text-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.map-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0 40px;
        margin-top: 70px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-card {
        padding: 25px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .location-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .location-icon {
        margin-right: 0;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Smooth slide animation for course dropdown */
#course-dropdown {
    transition: all 0.3s ease;
}