/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Hero */
.contact-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--gradient-light);
    overflow: hidden;
    text-align: center;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(5,150,105,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-breadcrumb {
    margin-bottom: 28px;
}

.contact-breadcrumb .breadcrumb {
    justify-content: center;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.contact-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
}

.contact-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Content section */
.contact-content-section {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

/* Form card */
.contact-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .contact-form-card { padding: 28px 20px; }
}

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

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

.contact-form-header p {
    color: var(--text-muted);
    margin: 0;
}

/* Form fields */
.cf-group {
    margin-bottom: 4px;
}

.cf-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cf-required {
    color: #DC2626;
    margin-left: 2px;
}

.cf-input-wrap {
    position: relative;
}

.cf-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.cf-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.cf-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
    background: var(--bg-white);
}

.cf-input::placeholder {
    color: var(--text-light);
}

.cf-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748B'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.cf-textarea {
    padding-top: 12px;
    resize: vertical;
    min-height: 160px;
}

/* Textarea icon */
.cf-group:has(.cf-textarea) .cf-input-icon {
    top: 16px;
    transform: none;
}

.cf-char-count {
    text-align: right;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* Submit button */
.cf-submit-btn {
    width: 100%;
    padding: 15px 32px;
    background: var(--gradient);
    border: none;
    border-radius: var(--r-md);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-green);
    margin-top: 8px;
}

.cf-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(5, 150, 105, 0.5);
}

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

.cf-btn-text,
.cf-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Spinner */
.cf-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cfSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes cfSpin {
    to { transform: rotate(360deg); }
}

/* Success state */
.cf-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.cf-success p {
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Checkmark animation */
.cf-success-animation {
    margin-bottom: 28px;
}

.cf-success-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: cfPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}

@keyframes cfPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cf-checkmark {
    width: 54px;
    height: 54px;
}

.cf-checkmark svg {
    width: 100%;
    height: 100%;
}

.cf-check-circle {
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: cfStroke 0.6s ease 0.3s forwards;
}

.cf-check-path {
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: cfStroke 0.4s ease 0.7s forwards;
}

@keyframes cfStroke {
    to { stroke-dashoffset: 0; }
}

.cf-send-another {
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--r-md);
    color: var(--primary);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cf-send-another:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-info-card > p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 28px;
}

.contact-info-list {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-50);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-info-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.contact-info-item span,
.contact-info-item a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--primary);
}

/* Channel buttons */
.contact-channels-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.contact-channels-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    border: 1.5px solid var(--border);
}

.channel-btn:last-child { margin-bottom: 0; }

.channel-btn > i:first-child {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.channel-btn > div {
    flex: 1;
}

.channel-btn strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.channel-btn span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.channel-arrow {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.channel-telegram { color: #0088cc; }
.channel-telegram:hover { background: rgba(0,136,204,0.06); border-color: #0088cc; transform: translateX(3px); }
.channel-discord { color: #5865F2; }
.channel-discord:hover { background: rgba(88,101,242,0.06); border-color: #5865F2; transform: translateX(3px); }
.channel-email { color: var(--primary); }
.channel-email:hover { background: var(--primary-50); border-color: var(--primary); transform: translateX(3px); }

.channel-btn:hover .channel-arrow { transform: translateX(4px); }

/* FAQ teaser */
.contact-faq-teaser {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.contact-faq-teaser h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-faq-teaser ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-faq-teaser ul li a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.contact-faq-teaser ul li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.contact-faq-teaser ul li a:hover { color: var(--primary); }

.faq-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.faq-link-btn:hover { gap: 10px; }

/* was-validated state */
.was-validated .cf-input:invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.was-validated .cf-input:valid {
    border-color: var(--success);
}
