/* NBC Contact Plugin - Royal Blue & Deep Yellow Theme */
:root {
    --nbc-royal-blue: #1e40af;
    --nbc-royal-blue-dark: #1e3a8a;
    --nbc-royal-blue-light: #dbeafe;
    --nbc-royal-blue-lighter: #eff6ff;
    --nbc-deep-yellow: #eab308;
    --nbc-deep-yellow-dark: #ca8a04;
    --nbc-deep-yellow-light: #fef9c3;
    --nbc-secondary: #64748b;
    --nbc-success: #10b981;
    --nbc-success-light: #d1fae5;
    --nbc-danger: #ef4444;
    --nbc-danger-light: #fee2e2;
    --nbc-dark: #1e293b;
    --nbc-light: #f8fafc;
    --nbc-white: #ffffff;
    --nbc-border: #e2e8f0;
    --nbc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --nbc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --nbc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --nbc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.nbc-contact-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--nbc-dark);
    line-height: 1.6;
}

.nbc-contact-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SVG Icon Base Styles */
.nbc-svg-icon,
.nbc-svg-icon-small,
.nbc-input-icon,
.nbc-error-icon,
.nbc-subject-icon,
.nbc-btn-icon,
.nbc-toast-icon,
.nbc-faq-chevron,
.nbc-map-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.nbc-svg-icon {
    width: 24px;
    height: 24px;
}

.nbc-svg-icon-small {
    width: 18px;
    height: 18px;
}

.nbc-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--nbc-secondary);
    transition: color 0.3s ease;
    pointer-events: none;
}

.nbc-error-icon {
    width: 14px;
    height: 14px;
    color: var(--nbc-danger);
}

.nbc-subject-icon {
    width: 20px;
    height: 20px;
}

.nbc-btn-icon {
    width: 18px;
    height: 18px;
}

.nbc-toast-icon {
    width: 20px;
    height: 20px;
}

.nbc-faq-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--nbc-deep-yellow);
}

.nbc-map-icon {
    width: 48px;
    height: 48px;
    color: var(--nbc-royal-blue);
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Social Links SVG */
.nbc-social-links a svg {
    width: 18px;
    height: 18px;
}

/* Success Icon */
.nbc-success-icon svg {
    width: 36px;
    height: 36px;
    color: var(--nbc-deep-yellow-dark);
}

/* Hero Section */
.nbc-contact-hero {
    background: linear-gradient(135deg, var(--nbc-royal-blue) 0%, var(--nbc-royal-blue-dark) 100%);
    padding: 100px 20px 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nbc-contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    animation: nbc-float 20s linear infinite;
}

@keyframes nbc-float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.nbc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.nbc-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--nbc-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.nbc-hero-content h1 span {
    color: var(--nbc-deep-yellow);
}

.nbc-hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Wave Divider */
.nbc-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.nbc-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.nbc-wave-divider .nbc-shape-fill {
    fill: var(--nbc-light);
}

/* Main Container */
.nbc-contact-container {
    max-width: 1200px;
    margin: -60px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.nbc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Info Cards */
.nbc-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nbc-info-card {
    background: var(--nbc-white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--nbc-shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--nbc-border);
    position: relative;
    overflow: hidden;
}

.nbc-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--nbc-deep-yellow), var(--nbc-deep-yellow-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nbc-info-card:hover::before {
    opacity: 1;
}

.nbc-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--nbc-shadow-xl);
}

.nbc-info-card .nbc-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--nbc-royal-blue-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nbc-info-card:hover .nbc-icon-wrapper {
    background: var(--nbc-royal-blue);
    transform: rotate(10deg) scale(1.1);
}

.nbc-info-card:hover .nbc-icon-wrapper svg {
    color: var(--nbc-deep-yellow);
}

.nbc-info-card .nbc-icon-wrapper svg {
    color: var(--nbc-royal-blue);
    transition: color 0.3s ease;
}

.nbc-info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--nbc-dark);
}

.nbc-info-card p, .nbc-info-card a {
    color: var(--nbc-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.nbc-info-card a:hover {
    color: var(--nbc-royal-blue);
}

.nbc-info-card .nbc-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nbc-info-card .nbc-detail-row svg {
    color: var(--nbc-deep-yellow);
    flex-shrink: 0;
}

/* Social Links */
.nbc-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.nbc-social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--nbc-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nbc-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--nbc-border);
}

.nbc-social-links a:hover {
    background: var(--nbc-royal-blue);
    color: var(--nbc-deep-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.3);
    border-color: var(--nbc-royal-blue);
}

/* Form Section */
.nbc-form-section {
    background: var(--nbc-white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--nbc-shadow-xl);
    border: 1px solid var(--nbc-border);
    position: sticky;
    top: 40px;
    position: relative;
    overflow: hidden;
}

.nbc-form-section::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--nbc-deep-yellow-light);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}

.nbc-form-content {
    position: relative;
    z-index: 1;
}

.nbc-form-header {
    margin-bottom: 32px;
}

.nbc-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--nbc-dark);
}

.nbc-form-header h2 span {
    color: var(--nbc-royal-blue);
}

.nbc-form-header p {
    color: var(--nbc-secondary);
    font-size: 0.95rem;
}

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

.nbc-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nbc-dark);
    margin-bottom: 8px;
}

.nbc-form-group label .nbc-required {
    color: var(--nbc-danger);
    margin-left: 2px;
}

.nbc-input-wrapper {
    position: relative;
}

.nbc-input-wrapper input:focus ~ .nbc-input-icon,
.nbc-input-wrapper textarea:focus ~ .nbc-input-icon {
    color: var(--nbc-royal-blue);
}

.nbc-form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--nbc-border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--nbc-dark);
    background: var(--nbc-white);
    transition: all 0.3s ease;
}

.nbc-form-control:hover {
    border-color: #cbd5e1;
}

.nbc-form-control:focus {
    outline: none;
    border-color: var(--nbc-royal-blue);
    box-shadow: 0 0 0 4px var(--nbc-royal-blue-light);
}

.nbc-form-control::placeholder {
    color: #94a3b8;
}

textarea.nbc-form-control {
    padding-left: 16px;
    min-height: 140px;
    resize: vertical;
}

.nbc-form-control.nbc-error {
    border-color: var(--nbc-danger);
    background: var(--nbc-danger-light);
}

.nbc-error-message {
    color: var(--nbc-danger);
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.nbc-error-message.nbc-show {
    display: flex;
}

/* Subject Select */
.nbc-subject-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.nbc-subject-option {
    position: relative;
}

.nbc-subject-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.nbc-subject-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--nbc-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nbc-secondary);
    background: var(--nbc-white);
}

.nbc-subject-option label svg {
    color: var(--nbc-secondary);
    transition: color 0.3s ease;
}

.nbc-subject-option input:checked + label {
    border-color: var(--nbc-royal-blue);
    background: var(--nbc-royal-blue-light);
    color: var(--nbc-royal-blue);
}

.nbc-subject-option input:checked + label svg {
    color: var(--nbc-royal-blue);
}

.nbc-subject-option label:hover {
    border-color: var(--nbc-royal-blue);
}

/* Honeypot */
.nbc-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Submit Button */
.nbc-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--nbc-royal-blue) 0%, var(--nbc-royal-blue-dark) 100%);
    color: var(--nbc-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.nbc-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
    transition: left 0.5s ease;
}

.nbc-submit-btn:hover::before {
    left: 100%;
}

.nbc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

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

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

.nbc-submit-btn .nbc-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--nbc-deep-yellow);
    border-radius: 50%;
    animation: nbc-spin 0.8s linear infinite;
}

@keyframes nbc-spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.nbc-success-message {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.nbc-success-message.nbc-show {
    display: block;
    animation: nbc-fadeInUp 0.5s ease;
}

@keyframes nbc-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nbc-success-icon {
    width: 80px;
    height: 80px;
    background: var(--nbc-deep-yellow-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: nbc-scaleIn 0.5s ease 0.2s both;
    border: 3px solid var(--nbc-deep-yellow);
}

@keyframes nbc-scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.nbc-success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--nbc-dark);
}

.nbc-success-message p {
    color: var(--nbc-secondary);
    margin-bottom: 24px;
}

.nbc-reset-btn {
    padding: 12px 32px;
    background: var(--nbc-light);
    border: 2px solid var(--nbc-border);
    border-radius: 10px;
    color: var(--nbc-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nbc-reset-btn:hover {
    border-color: var(--nbc-royal-blue);
    color: var(--nbc-royal-blue);
    background: var(--nbc-royal-blue-light);
}

/* FAQ Section */
.nbc-faq-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.nbc-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.nbc-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--nbc-dark);
}

.nbc-section-header h2 span {
    color: var(--nbc-deep-yellow-dark);
}

.nbc-section-header p {
    color: var(--nbc-secondary);
    font-size: 1.1rem;
}

.nbc-faq-item {
    background: var(--nbc-white);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--nbc-border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.nbc-faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--nbc-royal-blue), var(--nbc-deep-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nbc-faq-item:hover::before {
    opacity: 1;
}

.nbc-faq-item:hover {
    box-shadow: var(--nbc-shadow);
}

.nbc-faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--nbc-dark);
    transition: color 0.3s ease;
    gap: 16px;
}

.nbc-faq-question:hover {
    color: var(--nbc-royal-blue);
}

.nbc-faq-item.nbc-active .nbc-faq-chevron {
    transform: rotate(180deg);
}

.nbc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 28px;
}

.nbc-faq-item.nbc-active .nbc-faq-answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

.nbc-faq-answer p {
    color: var(--nbc-secondary);
    line-height: 1.7;
}

/* Map Section */
.nbc-map-section {
    margin-top: 80px;
    position: relative;
}

.nbc-map-container {
    height: 400px;
    background: linear-gradient(135deg, var(--nbc-royal-blue-light) 0%, var(--nbc-deep-yellow-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nbc-map-placeholder {
    text-align: center;
    color: var(--nbc-secondary);
}

.nbc-map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.9), transparent);
    padding: 60px 20px 40px;
    text-align: center;
}

.nbc-map-overlay h3 {
    color: var(--nbc-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.nbc-map-overlay p {
    color: rgba(255,255,255,0.8);
}

/* Footer */
.nbc-contact-footer {
    background: var(--nbc-royal-blue-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
}

.nbc-contact-footer p {
    font-size: 0.9rem;
}

.nbc-contact-footer p span {
    color: var(--nbc-deep-yellow);
}

/* Toast Notification */
.nbc-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--nbc-dark);
    color: var(--nbc-white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--nbc-shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999999;
    max-width: 400px;
}

.nbc-toast.nbc-show {
    transform: translateX(0);
}

.nbc-toast.nbc-error {
    background: var(--nbc-danger);
}

.nbc-toast.nbc-success {
    background: var(--nbc-success);
}

/* Responsive */
@media (max-width: 968px) {
    .nbc-contact-grid {
        grid-template-columns: 1fr;
    }
    .nbc-hero-content h1 {
        font-size: 2.5rem;
    }
    .nbc-form-section {
        position: static;
    }
}

@media (max-width: 640px) {
    .nbc-hero-content h1 {
        font-size: 2rem;
    }
    .nbc-form-section {
        padding: 32px 24px;
    }
    .nbc-subject-options {
        grid-template-columns: 1fr;
    }
    .nbc-info-card {
        padding: 24px;
    }
}
