/* Background - Professional Corporate Gradient */
body {
    background: linear-gradient(135deg, #f4f7fa 0%, #e9edf2 100%);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

/* Title Styling */
.inquiry-title {
    color: #1a2a3a;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 2.5rem;
}

/* Accent Line - Professional */
.line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c7da0, #1f5068);
    margin: 20px auto;
    border-radius: 2px;
}

/* ============================================ */
/* HERO SECTION STYLES (moved from inline CSS) */
/* ============================================ */

/* CSS Variables - Enhanced Color Scheme */
:root {
    --primary-dark: #0A2B3E;
    --primary: #1A6D8F;
    --primary-light: #3A8EB5;
    --primary-lighter: #E6F3F9;
    --primary-glow: rgba(26, 109, 143, 0.2);
    --secondary: #2C3E50;
    --accent: #E76F51;
    --accent-light: #F4EAE6;
    --gray-light: #F8F9FA;
    --gray-border: #E9ECEF;
    --text-dark: #1A2B3C;
    --text-muted: #6C757D;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 56px rgba(0,0,0,0.16);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Section - Enhanced with reduced spacing */
.hero-section-wrapper {
    background: linear-gradient(135deg, #0A2640 0%, #0E334C 50%, #1A4D6F 100%);
    position: relative;
    overflow: hidden;
    margin-top: -1.5rem;
    padding: 2rem 0 0.5rem 0;
    isolation: isolate;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    pointer-events: none;
}

.hero-section-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(57, 136, 189, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-section-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary), var(--primary-light), transparent);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-section {
    position: relative;
    z-index: 2;
    padding: 0.5rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF, #E0F0F8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1rem auto;
}

.hero-line-main {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary-light), transparent);
}

.hero-line-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(91, 163, 212, 0.6);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

.hero-scroll-indicator {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-scroll-indicator:hover {
    transform: translateY(3px);
}

.scroll-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-scroll-indicator i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* ============================================ */
/* TERMS MODAL STYLES (moved from inline CSS) */
/* ============================================ */

#termsContent {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

#termsContent h6 {
    color: #1f5068;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

#termsContent p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

#agreeBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Terms label styling - always dark color */
.terms-label {
    color: #1a2a3a !important;
    font-weight: 500;
    cursor: pointer;
}

.terms-link {
    text-decoration: none;
    font-weight: 600;
    color: #1f5068;
    cursor: pointer;
}

.terms-link:hover {
    text-decoration: underline;
    color: #2c7da0;
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: #1f5068;
    border-color: #1f5068;
}

.form-check-input:focus {
    border-color: #2c7da0;
    box-shadow: 0 0 0 0.2rem rgba(44, 125, 160, 0.25);
}

/* Subject field styling - remove dropdown appearance */
.subject-display {
    width: 100%;
}

.subject-input {
    background-color: #f8f9fa;
    cursor: not-allowed;
    color: #495057;
    font-weight: 500;
}

/* Make checkbox cursor pointer */
.form-check-input {
    cursor: pointer;
}

/* ============================================ */
/* RESPONSIVE HERO STYLES */
/* ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-line-main {
        width: 35px;
    }
    
    .hero-line-dot {
        width: 6px;
        height: 6px;
    }
    
    .hero-scroll-indicator {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section-wrapper {
        padding: 1rem 0 0.75rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-line {
        margin: 0.75rem auto;
    }
    
    .hero-line-main {
        width: 25px;
    }
    
    .scroll-text {
        font-size: 0.6rem;
    }
    
    .hero-scroll-indicator i {
        font-size: 0.75rem;
    }
}

/* Corporate Card Design */
.corporate-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.corporate-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Contact Info Items - Icon on left, text on right */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2c7da0 0%, #1f5068 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item h6 {
    color: #1a2a3a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Contact Links - Entire area clickable */
.contact-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 5px;
    margin: -5px;
}

.contact-link:hover {
    transform: translateX(5px);
}

.contact-link:hover .contact-icon {
    background: linear-gradient(135deg, #1f5068 0%, #2c7da0 100%);
    transform: scale(1.05);
}

.contact-link:hover h6 {
    color: #2c7da0;
}

.contact-link:hover p {
    color: #2c7da0;
}

/* Corporate Subtitle */
.corporate-subtitle {
    color: #1a2a3a;
    font-weight: 600;
    font-size: 1.2rem;
    border-left: 4px solid #2c7da0;
    padding-left: 12px;
}

/* Form Inputs - Clean Corporate Style */
.corporate-input {
    border-radius: 8px;
    border: 1px solid #e0e4e8;
    padding: 10px 14px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.corporate-input:focus {
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
    outline: none;
}

.corporate-input:hover {
    border-color: #b0c4d1;
}

/* Labels */
.form-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Corporate Button */
.corporate-btn {
    background: #1f5068;
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.corporate-btn:hover:not(:disabled) {
    background: #2c7da0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 80, 104, 0.3);
}

/* Proper styling for disabled button */
.corporate-btn:disabled {
    background: #bdc3c7;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Hover effect when disabled - no changes */
.corporate-btn:disabled:hover {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
}

.corporate-btn:hover {
    background: #2c7da0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 80, 104, 0.3);
}

/* Select Dropdown Styling */
select.corporate-input {
    cursor: pointer;
    background-color: white;
}

/* Textarea Styling */
textarea.corporate-input {
    resize: vertical;
    min-height: 120px;
}

/* Placeholder Styling */
.corporate-input::placeholder {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .inquiry-title {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .corporate-card .card-body {
        padding: 1.5rem !important;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Loading state for submit button */
.corporate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success/Error message animations */
.toast-success {
    background: #28a745;
    color: white;
}

.toast-error {
    background: #dc3545;
    color: white;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Attachment input specific styling */
input[type="file"].corporate-input {
    padding: 8px;
    cursor: pointer;
}

input[type="file"].corporate-input::file-selector-button {
    background: #f0f2f5;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    padding: 6px 12px;
    margin-right: 10px;
    cursor: pointer;
    color: #1f5068;
    transition: all 0.3s ease;
}

input[type="file"].corporate-input::file-selector-button:hover {
    background: #2c7da0;
    color: white;
}

/* Disabled button styling for offline mode */
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Optional: Network status bar animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Tooltip for offline button */
#submitBtn[title="No internet connection"]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
    pointer-events: none;
}

/* Make button container position relative for tooltip */
.col-12.mt-4 {
    position: relative;
}