/*--------------------------------------------------------------
# Contact Section Modern Styles
--------------------------------------------------------------*/

.contact {
    padding-bottom: 100px;
}

/* Base Cards */
.contact-info-card,
.contact-form-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.channel-badge {
    margin-left: auto;
    flex-shrink: 0;
}

.timezone-badge {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-body);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-input);
    white-space: nowrap;
}

.timezone-badge .clock-time {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-heading-secondary);
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.timezone-badge .clock-zone {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-body);
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timezone-badge .clock-colon {
    display: inline-block;
    animation: clock-pulse 2s ease-in-out infinite;
}

@keyframes clock-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
}

[data-theme="dark"] .timezone-badge,
[data-bs-theme="dark"] .timezone-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Contact Channels */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-input);
    border-radius: 10px;
    transition: all 0.25s ease;
}

[data-theme="dark"] .channel-item,
[data-bs-theme="dark"] .channel-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.channel-item:hover {
    border-color: var(--color-celestial-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-info-icon);
    color: var(--color-celestial-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.channel-content {
    flex: 1;
    min-width: 0;
}

.channel-content h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-body);
    margin-bottom: 2px;
    font-weight: 600;
}

.channel-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading-secondary);
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}

.channel-link:hover {
    color: var(--color-celestial-blue);
}

.channel-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading-secondary);
}

.channel-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-input);
    background: var(--bg-card);
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

[data-theme="dark"] .btn-action,
[data-bs-theme="dark"] .btn-action {
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-action:hover {
    background: var(--color-celestial-blue);
    color: #ffffff;
    border-color: var(--color-celestial-blue);
    transform: scale(1.08);
}

.btn-action.whatsapp-action:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

/* Map Section */
.contact-map-section {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.map-container {
    position: relative;
    width: 100%;
    min-height: 260px;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-input);
    background: #000000;
}

@media (min-width: 992px) {
    .map-container {
        height: 100%;
        min-height: 220px;
    }
}

[data-theme="dark"] .map-container,
[data-bs-theme="dark"] .map-container {
    border-color: rgba(255, 255, 255, 0.08);
}

.map-container .leaflet-container {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 10px;
}

.custom-leaflet-pin {
    background: transparent !important;
    border: none !important;
}

/* Astronomy Pulsing Star (Supernova) Marker */
.marker-celestial-star {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-celestial-star .star-glow {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(20, 157, 221, 0.55) 40%, transparent 70%);
    animation: starBreathing 2.2s ease-in-out infinite alternate;
}

.marker-celestial-star .star-crosshair {
    position: absolute;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    text-shadow: 0 0 10px #00f2fe, 0 0 20px #149ddd;
    transform: scale(1.1);
    pointer-events: none;
    user-select: none;
}

@keyframes starBreathing {
    0% {
        transform: scale(0.75);
        opacity: 0.65;
    }
    100% {
        transform: scale(1.35);
        opacity: 1;
    }
}



/* Form Styles */
.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading-secondary);
    margin-bottom: 2px;
}

/* Subject Chips */
.subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-input);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

[data-theme="dark"] .chip-btn,
[data-bs-theme="dark"] .chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.chip-btn:hover,
.chip-btn.active {
    background: var(--color-celestial-blue);
    border-color: var(--color-celestial-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Input Fields */
.email-form-modern .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading-secondary);
    margin-bottom: 6px;
}

.email-form-modern .input-wrapper {
    position: relative;
}

.email-form-modern .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-nav-icon);
    pointer-events: none;
    font-size: 16px;
}

.email-form-modern input.form-control {
    padding-left: 42px;
    height: 46px;
    background-color: var(--bg-input);
    color: var(--text-input);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-form-modern textarea.form-control {
    padding: 12px 14px;
    background-color: var(--bg-input);
    color: var(--text-input);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-form-modern input.form-control:focus,
.email-form-modern textarea.form-control:focus {
    border-color: var(--color-celestial-blue);
    box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.18);
}

.email-form-modern .form-control.is-invalid {
    border-color: var(--clr-error) !important;
}

.email-form-modern .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

.email-form-modern .error-message {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--clr-error);
}

.email-form-modern .error-message.show {
    display: block;
}

.char-counter.valid {
    color: var(--clr-success) !important;
}

/* Submit Button */
.btn-submit {
    background: var(--bg-btn-submit);
    color: #ffffff;
    border: 0;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(20, 157, 221, 0.25);
}

.btn-submit:hover:not(:disabled) {
    background: var(--bg-btn-submit-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 157, 221, 0.35);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Inline Form Alert */
.form-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.form-alert-success {
    background-color: rgba(40, 167, 69, 0.12);
    border: 1px solid var(--color-success);
    color: #28a745;
}

.form-alert-danger {
    background-color: rgba(220, 53, 69, 0.12);
    border: 1px solid var(--color-danger);
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info-card,
    .contact-form-card {
        padding: 20px 18px;
    }

    .channel-item {
        padding: 12px 14px;
    }
}