/* ============================================
   TRIPINVEST RENT - Contact Page Styles
   Modern, animated, premium design
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --gold: #f7ad0c;
    --gold-light: #fdf0c3;
    --gold-dark: #b8942e;
    --navy-900: #0d1f3c;
    --navy-800: #1a365d;
    --navy-700: #334e68;
    --navy-600: #486581;
    --navy-100: #d9e2ec;
    --navy-50: #f0f4f8;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(13,31,60,0.06);
    --shadow-md: 0 4px 6px rgba(13,31,60,0.07);
    --shadow-lg: 0 10px 15px rgba(13,31,60,0.08);
    --shadow-xl: 0 20px 25px rgba(13,31,60,0.10);
    --shadow-2xl: 0 25px 50px rgba(13,31,60,0.15);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(247, 173, 12, 0.4); }
    50%      { box-shadow: 0 0 0 15px rgba(247, 173, 12, 0); }
}

@keyframes blob {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -30px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll animations */
.contact-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.c-delay-1  { transition-delay: 0.1s; }
.c-delay-2  { transition-delay: 0.2s; }
.c-delay-3  { transition-delay: 0.3s; }
.c-delay-4  { transition-delay: 0.4s; }
.c-delay-5  { transition-delay: 0.5s; }

/* ---------- Contact Hero ---------- */
.contact-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    min-height: 480px;
    display: flex;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Animated blobs */
.contact-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    animation: blob 12s ease-in-out infinite;
}

.contact-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: -100px;
    right: -100px;
}

.contact-blob-2 {
    width: 300px;
    height: 300px;
    background: #4a90d9;
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}

/* Hero badge */
.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

.contact-hero h1 {
    animation: fadeInUp 0.8s ease-out 0.1s both;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.contact-hero .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Floating chips */
.contact-floating-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-900);
    z-index: 10;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.contact-chip-1 {
    top: 12%;
    right: 6%;
    animation-delay: 0s;
}

.contact-chip-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: -2s;
}

.contact-floating-chip i {
    color: var(--gold);
    font-size: 1rem;
}

/* ---------- Contact Card (Form) ---------- */
.contact-form-card {
    background: white;
    padding: 2.5rem;
    transition: all var(--transition);
    border: 1px solid rgba(13, 31, 60, 0.06);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-card:hover {
    box-shadow: var(--shadow-2xl);
    border-color: rgba(247, 173, 12, 0.15);
}

.contact-form-card:hover::before {
    transform: scaleX(1);
}

/* Form inputs */
.contact-input {
    width: 100%;
    border: 1px solid var(--navy-100);
    padding: 0.875rem 1.125rem;
    font-size: 0.95rem;
    color: var(--navy-900);
    background: white;
    transition: all var(--transition-fast);
    outline: none;
}

.contact-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(247, 173, 12, 0.12);
}

.contact-input::placeholder {
    color: var(--navy-400);
    opacity: 0.6;
}

.contact-textarea {
    width: 100%;
    border: 1px solid var(--navy-100);
    padding: 0.875rem 1.125rem;
    font-size: 0.95rem;
    color: var(--navy-900);
    background: white;
    transition: all var(--transition-fast);
    outline: none;
    resize: vertical;
    min-height: 120px;
}

.contact-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(247, 173, 12, 0.12);
}

.contact-textarea::placeholder {
    color: var(--navy-400);
    opacity: 0.6;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy-600);
    letter-spacing: 0.03em;
    margin-bottom: 0.375rem;
}

/* Submit button */
.contact-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--navy-900);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(247, 173, 12, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-submit-btn:hover {
    background: #f8bb2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 173, 12, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-submit-btn .btn-shimmer {
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

/* ---------- Contact Info Side ---------- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid rgba(13, 31, 60, 0.05);
    transition: all var(--transition);
}

.contact-info-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(247, 173, 12, 0.15);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 173, 12, 0.1);
    color: var(--gold-dark);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--gold);
    color: var(--navy-900);
    transform: scale(1.05) rotate(-5deg);
}

.contact-info-text {
    font-size: 0.9rem;
    color: var(--navy-600);
    line-height: 1.5;
}

.contact-info-text strong {
    color: var(--navy-900);
    font-weight: 600;
}

/* ---------- Map Card ---------- */
.contact-map-card {
    overflow: hidden;
    border: 1px solid rgba(13, 31, 60, 0.06);
    transition: all var(--transition);
}

.contact-map-card:hover {
    box-shadow: var(--shadow-2xl);
    border-color: rgba(247, 173, 12, 0.15);
}

/* ---------- Success Alert ---------- */
.contact-success {
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.04);
    padding: 1.5rem;
    color: #166534;
    animation: fadeInUp 0.5s ease-out;
}

.contact-success i {
    color: #22c55e;
    margin-right: 0.5rem;
}

/* ---------- Section Shared ---------- */
.contact-section {
    padding: 4rem 0;
}

.contact-section:last-of-type {
    padding-bottom: 6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 400px;
    }
    .contact-hero h1 {
        font-size: 2rem;
    }
    .contact-hero .lead {
        font-size: 1rem;
    }
    .contact-form-card {
        padding: 1.5rem;
    }
    .contact-floating-chip {
        display: none;
    }
    .contact-blob-1 {
        width: 200px;
        height: 200px;
    }
    .contact-blob-2 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 2.5rem 0;
    }
    .contact-hero h1 {
        font-size: 1.65rem;
    }
}