/* Custom Styles for Contact Page */
/* Built on top of Bootstrap 5.3.0 */

/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
    --primary-color: #4a5568;
    --primary-blue: #1b365d;
    --primary-dark: #2d3748;
    --secondary-color: #718096;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-radius: 0.5rem;
    --transition: all 0.2s ease;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Account for fixed navbar + top contact bar */
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 33vh;
    padding-top: 2rem; /* Reduced since body now has padding-top */
}

/* Hero Section Animations */
.hero-title {
    animation: heroTitleAnimation 1.2s ease-out forwards;
    animation-play-state: paused;
    opacity: 0;
}

.hero-description {
    animation: heroDescriptionAnimation 1.2s ease-out 0.4s forwards;
    animation-play-state: paused;
    opacity: 0;
}

@keyframes heroTitleAnimation {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(8px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(15px) scale(0.9);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroDescriptionAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.custom-hero-height {
    min-height: 33vh;
    padding: 3rem 0;
}

.hero-overlay {
    background: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 35%, 
        rgba(255, 255, 255, 0.7) 60%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%);
    z-index: 1;
}

.hero-section .container {
    z-index: 3;
    position: relative;
}

.hero-section h1 {
    color: var(--text-dark);
    line-height: 1.2;
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Section - Complete styles from contact-section.css */
.contact-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Side - Contact Information */
.contact-info {
    padding-right: 20px;
}

.contact-info h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    opacity: 1;
}

.contact-info-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 1;
}

.contact-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: #1b365d;
}

.contact-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.contact-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* Right Side - Contact Form */
.contact-form-container {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    opacity: 1;
}

.contact-form-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.contact-form-container h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(-15px);
    animation: formTitleFadeIn 0.8s ease-out 1s forwards;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: formFieldFadeIn 0.6s ease-out forwards;
}

/* Staggered animation delays for form fields */
.form-row:nth-child(1) .form-group:nth-child(1) { animation-delay: 1.2s; }
.form-row:nth-child(1) .form-group:nth-child(2) { animation-delay: 1.3s; }
.form-row:nth-child(2) .form-group:nth-child(1) { animation-delay: 1.4s; }
.form-row:nth-child(2) .form-group:nth-child(2) { animation-delay: 1.5s; }
.form-group:nth-child(3) { animation-delay: 1.6s; } /* Subject field */
.form-group:nth-child(4) { animation-delay: 1.7s; } /* Message field */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: formFieldFadeIn 0.6s ease-out 1.8s forwards;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    background-color: white;
    color: #2d3748;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1b365d;
    box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

.contact-submit-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    background-color: #1b365d;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: submitButtonFadeIn 0.7s ease-out 1.9s forwards;
}

.contact-submit-btn:hover {
    background-color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 54, 93, 0.2);
}

.contact-submit-btn:active {
    background-color: #0f1419;
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(27, 54, 93, 0.3);
}

/* Animation Keyframes */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes formContainerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes formTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formFieldFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes submitButtonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 10vh !important;
        padding: 2rem 0 0 0 !important; /* Reduced since body now has padding-top */
    }
    
    .custom-hero-height {
        min-height: 10vh !important;
        padding: 3rem 0 !important;
        display: flex;
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        color: var(--text-muted) !important;
        font-weight: 400;
    }
    
    .hero-section .container {
        padding: 0 1.5rem !important;
    }
    
    .hero-overlay::before {
        background: linear-gradient(to right, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.9) 70%, 
            rgba(255, 255, 255, 0.7) 100%) !important;
    }
    
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 30px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.9rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    .contact-form-container {
        padding: 24px 20px;
    }
    
    .contact-details {
        gap: 20px;
    }
}

/* Success Modal Styles */
.success-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transform: scale(0.7);
    opacity: 0;
    animation: modalAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalAppear {
    0% {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.success-modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-bottom: none;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.success-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerShine 2s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.success-icon-container {
    text-align: center;
    margin-bottom: 0;
}

.success-icon {
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.btn-close-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

.success-modal-body {
    padding: 2rem 2rem 2rem;
    text-align: center;
    background: #ffffff;
}

.success-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    animation: titleSlideIn 0.6s ease-out 0.3s backwards;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    animation: messageSlideIn 0.6s ease-out 0.5s backwards;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simplified - removed detail items styles as they're no longer needed */

.success-modal-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border: none;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 54, 93, 0.25);
    animation: buttonSlideIn 0.5s ease-out 1.5s backwards;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 54, 93, 0.35);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: #ffffff !important;
}

.success-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 54, 93, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    animation: buttonSlideIn 0.5s ease-out 1.7s backwards;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 54, 93, 0.25);
    border-color: var(--primary-blue);
}

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Loading State */
.modal-loading {
    pointer-events: none;
}

.modal-loading .success-modal-content {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Backdrop Enhancement */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Confetti Enhancement for Better Integration */
.confetti-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile Responsive for Success Modal */
@media (max-width: 768px) {
    .success-modal-content {
        margin: 1rem;
        border-radius: 12px;
    }
    
    .success-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-modal-body {
        padding: 1.5rem 1.5rem 1.5rem;
    }
    
    .success-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .success-message {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .success-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .success-btn,
    .btn-outline-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .success-modal-content {
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .success-modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .success-modal-body {
        padding: 1.25rem 1.25rem 1.25rem;
    }
    
    .success-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .success-message {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.5;
    }
    
    .success-modal-footer {
        padding: 0.875rem 1.25rem 1.25rem;
        gap: 0.5rem;
    }
    
    .success-btn,
    .btn-outline-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
} 