/* =============================================
   CONTACT PAGE — contact.css
   Loaded only on page-contact.php template
   ============================================= */

/* ── PAGE WRAPPER ───────────────────────────── */
.contact-page-wrap {
    width: 100%;
    flex: 1;
}

/* ── HEADER ROW ─────────────────────────────── */
.contact-header {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.contact-header-title h1 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.contact-header-title p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #64748b;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #dcfce7;
    color: #15803d;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── MAIN GRID ──────────────────────────────── */
.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 32px;
    align-items: start;
}

/* ── FORM BOX ───────────────────────────────── */
.form-box {
    background: #fff;
    border-radius: 28px;
    padding: 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.form-box-heading {
    margin-bottom: 28px;
}

.form-box-heading h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.form-box-heading p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748b;
}

/* ── QUICK SELECT CHIPS ─────────────────────── */
.chips-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.chip-btn {
    padding: 9px 18px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.chip-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.chip-btn:active {
    transform: scale(0.97);
}

.chip-btn.chip-active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ── FORM FIELDS ────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    position: relative;
}

.form-field label:not(.floating-label) {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

/* Floating label input */
.floating-wrap {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.modern-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.floating-label {
    position: absolute;
    left: 20px;
    top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.modern-input:focus + .floating-label,
.modern-input:not(:placeholder-shown) + .floating-label {
    top: -10px;
    left: 16px;
    font-size: 11.5px;
    font-weight: 600;
    color: #2563eb;
    background-color: #fff;
    padding: 0 5px;
    border-radius: 3px;
}

/* Select */
select.modern-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Textarea */
.textarea-wrap {
    position: relative;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.message-header label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.ai-assist-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ai-assist-btn:hover {
    background-color: #f1f5f9;
    border-color: #2563eb;
}

textarea.modern-input {
    min-height: 130px;
    resize: vertical;
    border-radius: 16px;
    padding: 16px 20px;
    padding-bottom: 36px;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 18px;
    font-family: 'Inter', monospace;
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
}

.char-count.over-limit {
    color: #ef4444;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background-color: #A3EA3F;
    border: none;
    border-radius: 18px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(163, 234, 63, 0.4);
}

.contact-submit-btn:hover {
    background-color: #8BC34A;
    transform: translateY(-1px);
}

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

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

.submit-note {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

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

/* Contact Info Card */
.contact-info-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

.contact-info-card h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1.5px solid #f1f5f9;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.contact-info-item:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background-color: #E6FABB;
    color: #7CB342;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-info-body {
    flex: 1;
    min-width: 0;
}

.contact-info-type {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.contact-info-value {
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contact-info-item:hover .contact-info-value {
    color: #2563eb;
}

/* Clipboard toast */
.copy-toast {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    animation: toastIn 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

@keyframes toastIn {
    from { opacity: 0; top: -28px; }
    to   { opacity: 1; top: -36px; }
}

/* ── GOOGLE MAPS ─────────────────────────────── */
.contact-map-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.contact-map-label {
    padding: 18px 22px 14px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.contact-map-card iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: none;
}

/* ── SUCCESS STATE ───────────────────────────── */
.form-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.form-success.is-visible {
    display: block;
}

.form-success i {
    font-size: 56px;
    color: #A3EA3F;
    margin-bottom: 16px;
    display: block;
}

.form-success h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-success p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748b;
}

/* ── FORM ERROR ─────────────────────────────── */
.form-error-msg {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #ef4444;
    margin-top: 10px;
    display: none;
}

.form-error-msg.is-visible {
    display: block;
}
