/* Janamax — Let's Talk page (ported from the "Janamax Lets Talk" design). Builds on home.css. */

body.jm { background: #091724; }

/* ---------- Hero ---------- */
.jm-talk__hero { position: relative; overflow: hidden; background: #091724; }
.jm-talk__hero-bg { position: absolute; inset: 0; }
.jm .jm-talk__hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jm-talk__hero-bg::after { content: ''; position: absolute; inset: 0; background-color: #060C14A5; }
.jm-talk__hero .jm-phead { position: relative; padding-bottom: clamp(60px, 6.5vw, 100px); }
/* Keeps its original spacing; the tighter desktop head in home.css is for Projects / About / FAQ. */
@media (min-width: 1100px) {
	.jm-talk__hero .jm-phead { padding-top: calc(clamp(40px, 5vw, 72px) + 104px); align-items: center; }
}
@media (max-width: 699px) {
	.jm-talk__hero .jm-phead { padding-top: calc(clamp(40px, 5vw, 72px) + 88px); }
}
.jm-talk__hero .jm-phead__intro { color: #b6c8d1; }
/* The design keeps an invisible CTA next to the title for height; this spacer reproduces that row height. */
.jm-talk__hero .jm-phead::after { content: ''; order: 1; width: 0; height: 146px; }
.jm-talk__hero .jm-phead__intro { order: 2; }

/* ---------- Card ---------- */
.jm-talk__form-section { padding-top: clamp(60px, 6.5vw, 100px); max-width: none; }
.jm-talk__card {
	max-width: calc(1440px - 2 * var(--jm-gutter)); margin: 0 auto;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	border-radius: 12px; border-right: 1px solid var(--jm-accent); background: var(--jm-card);
}
.jm-talk__form, .jm-talk__info { padding: clamp(26px, 3vw, 42px); min-width: 0; }
.jm-talk__h {
	margin: 0; font-family: var(--jm-display); font-weight: 300; font-size: clamp(32px, 4vw, 52px);
	letter-spacing: 0.03em; line-height: 1.1; overflow-wrap: anywhere;
}

/* ---------- Contact Form 7 markup ---------- */
.jm-talk .wpcf7 form { margin: 0; }
.jm-talk .wpcf7 p { margin: 0; }
.jm-talk .jm-form-label-row {
	margin: 26px 0 14px; font-family: var(--jm-display); font-size: 16px; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--jm-accent);
}
.jm-talk .jm-form-divider { height: 1px; margin: 26px 0 0; background: rgba(255, 255, 255, 0.1); }
.jm-talk .jm-form-divider + .jm-form-label-row { margin-top: 18px; margin-bottom: 0; }
.jm-talk .jm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.jm-talk .jm-field { position: relative; display: block; }
.jm-talk .jm-form-sublabel { margin: 16px 0 8px; font-size: 16px; color: #b6c8d1; }
.jm-talk .jm-form-sublabel + .wpcf7-form-control-wrap, .jm-talk .jm-form-sublabel ~ .jm-form-sublabel { margin-top: 18px; }
.jm-talk .jm-required { color: var(--jm-accent); }
.jm-talk .wpcf7-form-control-wrap { display: block; }

.jm-talk .wpcf7 input[type="text"], .jm-talk .wpcf7 input[type="email"], .jm-talk .wpcf7 input[type="tel"],
.jm-talk .wpcf7 select, .jm-talk .wpcf7 textarea {
	width: 100%; padding: 15px 16px; margin: 0; border-radius: 8px; outline: none; box-shadow: none;
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); color: #e6eef3;
	font-family: var(--jm-body); font-size: 16px; line-height: 1.4; transition: border-color 0.2s ease;
}
.jm-talk .wpcf7 input:focus, .jm-talk .wpcf7 select:focus, .jm-talk .wpcf7 textarea:focus { border-color: var(--jm-accent); }
.jm-talk .wpcf7 input::placeholder, .jm-talk .wpcf7 textarea::placeholder { color: #8ba3b0; opacity: 1; }
.jm-talk .wpcf7 textarea { height: calc(6.4em + 32px); min-height: 0; line-height: 1.6; resize: vertical; } /* 4 rows, as in the design */
.jm-talk .jm-select-wrap { position: relative; }
.jm-talk .wpcf7 select {
	-webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; color: #cfdde5; font-size: 15px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23a9bdc7' stroke-width='1.4'%3E%3Cpolyline points='3,6 8,11 13,6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.jm-talk .wpcf7 select option { background: #0f1f2c; color: #e6eef3; }

/* Attachments dropzone (the native input sits invisibly on top of it). */
.jm-talk .jm-form-label-row-attachments { margin-bottom: 12px; }
.jm-talk .jm-field-file {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px;
	border: 1px dashed rgba(255, 255, 255, 0.28); border-radius: 8px; cursor: pointer; text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.jm-talk .jm-field-file:hover, .jm-talk .jm-field-file.is-dragover { border-color: var(--jm-accent); background: rgba(231, 77, 15, 0.05); }
.jm-talk .jm-field-file .wpcf7-form-control-wrap { position: absolute; inset: 0; }
.jm-talk .jm-field-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.jm-talk .jm-field-file-visual { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #eaf2f7; text-transform: uppercase; pointer-events: none; }
.jm-talk .jm-field-file-visual svg { width: 19px; height: 19px; color: #dbe7ee; }
.jm-talk .jm-dropzone-hint { margin: 0; font-size: 13px; line-height: 1.55; color: #92a7b2; pointer-events: none; }
.jm-talk .jm-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jm-talk .jm-file-list-item {
	display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 6px;
	background: rgba(255, 255, 255, 0.04); font-size: 14px; color: #dbe7ee;
}
.jm-talk .jm-file-list-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-talk .jm-file-list-size { color: #92a7b2; }
.jm-talk .jm-file-list-remove { border: 0; background: transparent; color: #a9bdc7; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.jm-talk .jm-file-list-remove:hover { color: var(--jm-accent); }

/* Submit: the CF7 input is replaced visually by .jm-talk-submit-btn (see page-lets-talk.js). */
.jm-talk .jm-talk-submit { width: 100%; margin-top: 24px; }
.jm-talk .jm-talk-submit-btn { width: 100%; justify-content: center; margin-top: 24px; cursor: pointer; }
.jm-talk .jm-talk-submit-btn[disabled] { opacity: 0.7; cursor: progress; }
.jm-talk .jm-talk-submit.is-replaced { display: none; }
.jm-talk .wpcf7-spinner { display: block; margin: 12px auto 0; }

.jm-talk .jm-form-privacy { margin-top: 16px; font-size: 13px; color: #92a7b2; text-align: center; }
.jm-talk .jm-form-privacy::before {
	content: ''; display: inline-block; vertical-align: -2px; width: 14px; height: 14px; margin-right: 9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%2392a7b2' stroke-width='1.2'%3E%3Crect x='2.5' y='6' width='9' height='6.5' rx='1'/%3E%3Cpath d='M4.8 6 V4.4 a2.2 2.2 0 0 1 4.4 0 V6'/%3E%3C/svg%3E") no-repeat center;
}
.jm-talk .jm-form-privacy a { color: #dbe7ee; }
.jm-talk .jm-form-privacy a:hover { color: var(--jm-accent); }

/* Validation / response messages. */
.jm-talk .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #ff8a65; }
.jm-talk .wpcf7 .wpcf7-not-valid { border-color: #ff8a65; }
.jm-talk .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 14px; color: #dbe7ee;
}
.jm-talk .wpcf7 form.sent .wpcf7-response-output { border-color: #46b450; }
.jm-talk .wpcf7 form.invalid .wpcf7-response-output, .jm-talk .wpcf7 form.unaccepted .wpcf7-response-output,
.jm-talk .wpcf7 form.failed .wpcf7-response-output, .jm-talk .wpcf7 form.spam .wpcf7-response-output { border-color: var(--jm-accent); }

/* ---------- Contact details ---------- */
.jm-talk__lead { display: flex; align-items: flex-start; gap: 18px; margin-top: calc((clamp(35px, 4.4vw, 57px) - 27px) / 2); }
.jm-talk__lead svg { flex: none; margin-top: 2px; }
.jm-talk__label { margin: 0; font-family: var(--jm-display); font-weight: 300; font-size: clamp(18px, 1.7vw, 21px); letter-spacing: 0.06em; color: var(--jm-accent); overflow-wrap: anywhere; }
.jm-talk__lead p, .jm-talk__support p { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: #93a7b1; text-wrap: pretty; }
.jm-talk__info > .jm-talk__label { margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.jm-talk__contacts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.jm-talk__contacts li, .jm-talk__hours { display: flex; align-items: center; gap: 16px; }
.jm-talk__contacts svg, .jm-talk__hours svg { flex: none; }
.jm-talk__contacts span { color: #e6eef3; }
.jm-talk__hours { margin-top: 18px; }
.jm-talk__hours p { margin: 0; font-size: 18px; line-height: 1.55; color: #e6eef3; }
.jm-talk__support p:first-child { margin-top: 16px; }
.jm-talk__support p + p { margin-top: 14px; }

/* ---------- Services ---------- */
.jm-talk__services { padding-top: clamp(60px, 6.5vw, 100px); padding-bottom: clamp(60px, 6.5vw, 100px); }
.jm-talk__services .jm-title { margin: 0; }
.jm-talk__grid { margin-top: clamp(44px, 5vw, 88px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; }
.jm-talk__service { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 12px; text-align: center; min-width: 0; }
.jm-talk__service .jm-tile { margin-bottom: 8px; }
.jm-talk__service h3 { margin: 0; font-family: var(--jm-display); font-weight: 300; font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.jm-talk__service p { margin: 0; font-size: 18px; line-height: 1.6; color: #93a7b1; text-wrap: pretty; }

@media (max-width: 1099px) {
	.jm-talk__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
	.jm-talk__hero .jm-phead::after { display: none; }
	.jm-talk__h { font-size: 32px; }
	.jm-talk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 40px; }
	.jm-talk__service { padding: 0; }
	.jm-talk__service h3 { font-size: clamp(14px, 4.2vw, 18px); overflow-wrap: normal; }
	.jm-talk__service p { font-size: 16px; }
	.jm-talk .jm-talk-submit-btn { padding: 16px 20px; }
}
