/* Contact page layout & components */

:root {
    --ai-1: #479ff7;
    --ai-2: #1a75ef;
    --ink: #334155;
    --muted: #64748b;
}

.cf-contact-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.cf-grid {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.cf-col {
    flex: 1 1 0;
}

/* Form above on mobile */
@media (max-width: 768px) {
    .cf-grid {
        flex-direction: column;
    }

    .cf-col.form {
        order: -1;
    }
}

.cf-title {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
}

/* Cards */
.cf-card {
    border: 1px solid #e6e6e9;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.cf-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* Headings & helper text */
.cf-form-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: var(--ink);
}

.cf-form-sub {
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0 0 1rem;
}

/* Fields */
.cf-field {
    margin-bottom: 16px;
}

.cf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 14px;
}

.cf-input,
.cf-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fff;
    box-shadow: rgb(112 120 151 / 15%) 0px 3px 0px 0px !important;
}

input, textarea, select{
    color: var(--ink) !important;
}

.cf-input:focus,
.cf-textarea:focus {
    border-color: var(--ai-1);
    box-shadow: 0 0 0 3px rgba(71, 159, 247, 0.25);
}

.cf-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Button */
.cf-btn {
    background: linear-gradient(90deg, var(--ai-1), var(--ai-2));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: flex-start;
    width: fit-content;
    gap: .5rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    padding: 14px 20px;
    transition: all .2s ease;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(70, 83, 207, .20);
    font-size: 16px;
    letter-spacing: normal;
}

.cf-btn:hover {
    opacity: .9;
}

.contact-credit {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .75rem;
}

.contact-credit a {
    color: var(--ai-1);
}

.contact-credit a:hover {
    color: var(--ai-2);
}

/* Alerts */

.cf-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  background: #eef7ff;
  border: 1px solid var(--ai-1);
  color: var(--ai-1);
  font-weight: 500;
}

/* Inline error */
.cf-error {
  margin-top: 6px;
  color: #d93025;        /* modern red */
  font-size: 0.875rem;
}

/* Invalid field styling */
.is-invalid {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,.12) !important;
}

.cf-alert.success {
    background: #eaf8ef;
    border: 1px solid #bfe6cb;
    color: #1f7a3f;
}

.cf-ul {
    margin: 8px 0 0 18px;
}

/* Utility */
.hidden {
    display: none !important;
}