:root {
    --primary-color: #8a42ff;
    --primary-light: #9d5eff;
    --primary-dark: #6a2fd4;
    --secondary-color: #2b2b36;
    --accent-color: #00d4aa;
    --accent-light: #4dffd9;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --success-color: #2ed573;
    --info-color: #1e90ff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a24;
    --text-dark: #2d3748;
    --text-light: #718096;
    --text-white: #ffffff;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 66, 255, 0.25);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #00b894);
    color: #0f172a !important;
    font-weight: 600;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #00b894, var(--accent-color));
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.25);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.contact-hero {
    background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
    color: white;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Contact Method Cards
   ========================================================================== */
.contact-method-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.method-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.support-bg {
    background: linear-gradient(135deg, #8a42ff, #6a2fd4);
}

.sales-bg {
    background: linear-gradient(135deg, #00d4aa, #00b894);
}

.partnership-bg {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.general-bg {
    background: linear-gradient(135deg, #1e90ff, #0a7bd9);
}

.contact-method-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.contact-method-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.response-time {
    display: inline-block;
    background: rgba(138, 66, 255, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    margin: 10px auto 16px;
    font-size: 0.85rem;
}

.office-hours {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 22px !important;
    text-align: left;
    flex-grow: 1;
}

.office-hours li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 0.88rem;
    border-bottom: 1px dashed #edf2f7;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.office-hours li:last-child {
    border-bottom: none;
}

.office-hours li i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.office-hours li a, .office-hours li span {
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.office-hours li a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-form-section {
    background: linear-gradient(135deg, var(--bg-dark), #2b2b36);
    color: white;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

/* Form Controls */
.contact-form-section .form-control {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.contact-form-section .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(138, 66, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    outline: none;
}

.contact-form-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   DROPDOWN / SELECT FULL VISIBILITY FIX (CRITICAL)
   ========================================================================== */
.contact-form-section select.form-select {
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-section select.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(138, 66, 255, 0.3) !important;
    outline: none;
    color: #1e293b !important;
}

/* Option tags inside select dropdown - 100% visible on all operating systems */
.contact-form-section select.form-select option {
    background-color: #ffffff !important;
    color: #1e293b !important;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
}

.contact-form-section select.form-select option:hover,
.contact-form-section select.form-select option:focus,
.contact-form-section select.form-select option:checked {
    background-color: #8a42ff !important;
    color: #ffffff !important;
}

/* Floating Label text colors & positioning */
.contact-form-section .form-floating > label {
    color: rgba(255, 255, 255, 0.75) !important;
    background: transparent !important;
    padding: 1rem 1rem;
    pointer-events: none;
}

.contact-form-section .form-floating > select.form-select ~ label {
    color: #475569 !important;
}

.contact-form-section .form-floating > label::after {
    background-color: transparent !important;
}

.contact-form-section .form-control:focus ~ label,
.contact-form-section .form-control:not(:placeholder-shown) ~ label {
    color: #4dffd9 !important;
    opacity: 0.95;
}

.contact-form-section .form-select:focus ~ label,
.contact-form-section .form-select ~ label {
    color: #64748b !important;
}

/* Checkboxes & Radios */
.contact-form-section .form-check-input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.contact-form-section .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form-section .form-check-label {
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

/* Captcha section */
.captcha-container {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: var(--border-radius-sm);
}

.captcha-display {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 12px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 6px;
    font-weight: bold;
    border-radius: 6px;
    color: #ffffff !important;
    user-select: none;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px 28px;
    box-shadow: var(--box-shadow);
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: var(--transition);
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-card.active .faq-answer {
    max-height: 500px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-card.active .faq-toggle {
    transform: rotate(45deg);
}

/* ==========================================================================
   Error Messages & Animations
   ========================================================================== */
.has-error .form-control {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.25) !important;
}

.has-error .form-select {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.25) !important;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .section-title h2 {
        font-size: 2.1rem;
    }
    .contact-form-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0 50px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}
