/* ===== Contact us (on top of about.css) ===== */
.ct-hero {
    padding-bottom: 32px;
}

.ct-section {
    padding-top: 36px;
}

.ct-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .ct-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .ct-side {
        position: sticky;
        top: 96px;
    }
}

.ct-card {
    padding: 24px;
    border: 1px solid var(--ab-border);
    border-radius: 20px;
    background: var(--ab-surface);
}

.ct-form-card {
    padding: 28px;
    box-shadow: 0 20px 50px rgba(16, 12, 40, 0.06);
}

.ct-area .ab-section .ct-form-title {
    margin: 0 0 4px;
    color: var(--ab-text);
    font-size: 22px;
    font-weight: 800;
}

.ct-area .ct-form-hint {
    margin: 0 0 20px;
    color: var(--ab-muted);
    font-size: 14px;
    line-height: 1.9;
}

.ct-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    font-size: 14px;
}

body.active-dark-mode .ct-alert {
    color: #f87171;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 16px;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ct-area .ct-field label {
    margin: 0;
    color: var(--ab-text);
    font-size: 14px;
    font-weight: 700;
}

.ct-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.ct-counter {
    color: var(--ab-muted);
    font-family: Dana, Dana-fallback, Tahoma, sans-serif;
    font-size: 12px;
}

.ct-area .ct-field input,
.ct-area .ct-field textarea {
    width: 100%;
    padding: 0 14px;
    border: 1px solid var(--ab-border);
    border-radius: 12px;
    background: var(--ab-bg);
    color: var(--ab-text);
    font-family: Dana, Dana-fallback, Tahoma, sans-serif;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ct-area .ct-field input {
    height: 50px;
}

.ct-area .ct-field input[dir='ltr'] {
    text-align: left;
}

.ct-area .ct-field input[dir='ltr']::placeholder {
    text-align: left;
}

.ct-area .ct-field textarea {
    min-height: 170px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.9;
    resize: vertical;
}

body.active-dark-mode .ct-area .ct-field input,
body.active-dark-mode .ct-area .ct-field textarea {
    border-color: var(--ab-border);
    background: var(--ab-bg);
    color: var(--ab-text);
}

.ct-area .ct-field input::placeholder,
.ct-area .ct-field textarea::placeholder {
    color: var(--ab-muted);
    opacity: 0.75;
}

.ct-area .ct-field input:focus,
.ct-area .ct-field textarea:focus {
    border-color: var(--ab-accent);
    background: var(--ab-surface);
    box-shadow: 0 0 0 4px var(--ab-accent-soft);
    outline: none;
}

.ct-area .ct-field [aria-invalid='true'] {
    border-color: #dc2626;
}

.ct-error {
    margin: 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

body.active-dark-mode .ct-error {
    color: #f87171;
}

.ct-actions {
    display: flex;
    justify-content: flex-end;
}

.ct-area button.ct-submit {
    width: auto;
    min-width: 170px;
    justify-content: center;
    cursor: pointer;
}

.ct-area button.ct-submit:disabled {
    cursor: progress;
    opacity: 0.7;
}

/* ----- Sent state ----- */
.ct-sent {
    padding: 28px 8px;
    text-align: center;
}

.ct-sent-icon {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    font-size: 28px;
    animation: ct-pop 0.4s ease;
}

@keyframes ct-pop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.1); }
}

.ct-area .ab-section .ct-sent h2 {
    margin: 0 0 8px;
    color: var(--ab-text);
    font-size: 24px;
    font-weight: 800;
}

.ct-area .ct-sent p {
    max-width: 440px;
    margin: 0 auto 20px;
    font-size: 15px;
}

.ct-sent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ----- Side ----- */
.ct-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ct-way {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ct-way:hover {
    border-color: var(--ab-accent);
    transform: translateY(-2px);
}

.ct-way-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ab-accent-soft);
    color: var(--ab-accent);
    font-size: 20px;
}

.ct-way > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ct-area .ct-way strong {
    color: var(--ab-text);
    font-size: 15px;
}

.ct-area .ct-way span span {
    overflow: hidden;
    color: var(--ab-muted);
    font-size: 14px;
    text-overflow: ellipsis;
}

.ct-area .ab-section .ct-side-title {
    margin: 0 0 12px;
    color: var(--ab-text);
    font-size: 16px;
    font-weight: 800;
}

.ct-tips {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-tips li {
    margin: 0;
}

.ct-tips a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.ct-area .ct-tips a {
    color: var(--ab-muted);
}

.ct-area .ct-tips a:hover {
    background: var(--ab-bg);
    color: var(--ab-text);
}

.ct-tips i {
    flex: none;
    width: 18px;
    color: var(--ab-accent);
    text-align: center;
}

.ct-area .ct-tips strong {
    color: var(--ab-text);
}

.ct-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-socials li {
    margin: 0;
}

.ct-area .ct-socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ab-border);
    border-radius: 12px;
    color: var(--ab-muted);
    font-size: 16px;
}

.ct-area .ct-socials a:hover {
    border-color: var(--ab-accent);
    color: var(--ab-accent);
}

@media (max-width: 575px) {
    .ct-form-card {
        padding: 20px 16px;
    }

    .ct-card {
        padding: 18px 16px;
    }

    .ct-area button.ct-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-sent-icon {
        animation: none;
    }

    .ct-way,
    .ct-tips a {
        transition: none;
    }

    .ct-way:hover {
        transform: none;
    }
}
