/* ============================================================
   Contact Us (Figma-aligned)
   ============================================================ */

   .ph-contact-page {
	background: var(--ph-gray-bg);
	padding: 40px 0 0;
}

.ph-contact-page__wrap {
	padding-bottom: 0;
}


/* ---- Hero intro card ---- */

.ph-contact-hero {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 16px;
	box-shadow: var(--ph-shadow-sm);
	padding: 44px 40px 48px;
	margin-bottom: 65px;
	margin-top: 30px;
	text-align: center;
}

.ph-contact-hero__title {
	margin: 0 0 18px;
	font-size: 4rem;
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.ph-contact-hero__intro {
	margin: 0 auto;
    max-width: 920px;
    font-size: 1.75rem;
    font-weight: var(--ph-fw-medium);
    color: var(--ph-gray);
    line-height: 1.55;
    text-align: center;
}

/* ---- 2×2 channel cards ---- */

.ph-contact-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 24px;
}

.ph-contact-cards__card {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 16px;
	box-shadow: var(--ph-shadow-sm);
	padding: 32px 32px 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
}

.ph-contact-cards__icon {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: var(--ph-green);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--ph-white);
	flex-shrink: 0;
}

.ph-contact-cards__icon :is(svg, img) {
	width: 26px;
	height: 26px;
	object-fit: contain;
	display: block;
}

.ph-contact-cards__icon .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
	line-height: 26px;
	color: inherit;
}

.ph-contact-cards__title {
	margin: 0 0 12px;
	font-size: 1.75rem;
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
	line-height: 1.2;
}

.ph-contact-cards__desc {
	margin: 0 0 18px;
	font-size: 1.25rem;
	color: var(--ph-gray);
	line-height: 1.55;
	flex: 1;
	font-weight: 500;
}

.ph-contact-cards__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.ph-contact-cards__email-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 8px;
	margin: 0;
	width: 100%;
	font-size: 1.1rem;
	line-height: 1.45;
}

.ph-contact-cards__email-label {
	color: var(--ph-gray);
	font-weight: var(--ph-fw-medium);
	flex-shrink: 0;
}

.ph-contact-cards__email {
	color: var(--ph-green);
	font-weight: var(--ph-fw-semi);
	text-decoration: none;
	word-break: break-word;
}

.ph-contact-cards__email:hover {
	text-decoration: underline;
}

.ph-contact-cards__btn {
	box-sizing: border-box;
	text-align: center;
	justify-content: center;
	width: 100%;
}


.ph-contact-cards__note {
	margin: 14px 0 0;
	font-size: var(--ph-text-sm);
	color: var(--ph-gray-mid);
	line-height: 1.45;
}

/* ---- Media & partnerships ---- */

.ph-contact-media {
	margin-bottom: 50px;
    margin-top: 50px;
}

.ph-contact-media__inner {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 16px;
	box-shadow: var(--ph-shadow-sm);
	padding: 36px 40px 40px;
	text-align: center;
}

.ph-contact-media__title {
	margin: 0 0 12px;
	font-size: 2.1rem;
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
}

.ph-contact-media__subtitle {
	margin: 0 0 20px;
	font-size:1.5rem;
	color: var(--ph-gray);
	line-height: 1.5;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.ph-contact-media__pill {
	display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: var(--ph-fw-semi);
    color: var(--ph-green);
    border: 1px solid var(--ph-gray-light);
}

.ph-contact-media__pill a {
	color: inherit;
	text-decoration: none;
}

.ph-contact-media__pill a:hover {
	text-decoration: underline;
}

.ph-contact-media__pill-label {
	color: var(--ph-gray);
	font-weight: var(--ph-fw-medium);
}

/* ---- Form block ---- */

.ph-contact-form-block {
	margin-bottom: 50px;
    margin-top: 50px;
}

.ph-contact-form-block__inner {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 16px;
	box-shadow: var(--ph-shadow-sm);
	padding: 40px 44px 44px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.ph-contact-form-block__title {
	margin: 0 0 12px;
	text-align: center;
	font-size: 2.5rem;
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
}

.ph-contact-form-block__subtitle {
	margin: 0 auto 24px;
	text-align: center;
	font-size: 1.25rem;
	color: var(--ph-gray);
	line-height: 1.5;
}

.ph-contact-form-block__form {
	margin-top: 8px;
}

/* Contact Form 7 — layout (.ph-cf7-*) + fields to match live reference */

.ph-contact-form-block__form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ph-contact-form-block__form .ph-cf7-row {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.ph-cf7-row.ph-cf7-contact-form-row--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ph-contact-form-block__form .ph-cf7-field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
}

.ph-contact-form-block__form .ph-cf7-submit {
	width: 100%;
	display: block;
}

.ph-contact-form-block__form .ph-cf7-submit .wpcf7-submit,
.ph-contact-form-block__form .ph-cf7-submit input[type="submit"] {
	width: 100%;
}

@media (max-width: 640px) {
	.ph-cf7-row.ph-cf7-contact-form-row--2 {
		grid-template-columns: 1fr;
	}
}

.ph-contact-form-block__form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.ph-contact-form-block__form label,
.ph-contact-form-block__form .wpcf7-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 1.25rem;
	font-weight: var(--ph-fw-medium);
	color: var(--ph-gray);
}

/* Country phone widget: CF7 <label> is the only visible title. */
.ph-contact-form-block__form .ph-country-phone-field .ph-login-modal__label {
	display: none !important;
}

.ph-contact-form-block__form label:has(.ph-country-phone-field) br,
.ph-contact-form-block__form label:has(.ph-country-phone-field) ~ br {
	display: none;
}

.ph-contact-form-block__form .wpcf7-form-control-wrap:has(.ph-country-phone-field) {
	margin-top: 0;
}

.ph-contact-form-block__form .wpcf7-form > p:empty,
.ph-contact-form-block__form .ph-cf7-form-fields > p:empty,
.ph-contact-form-block__form .ph-cf7-form-fields > p:has(> br:only-child) {
	display: none !important;
	margin: 0;
	padding: 0;
	height: 0;
	min-height: 0;
}

.ph-contact-form-block__form .wpcf7-text,
.ph-contact-form-block__form .wpcf7-email,
.ph-contact-form-block__form .wpcf7-textarea,
.ph-contact-form-block__form input[type="text"],
.ph-contact-form-block__form input[type="email"],
.ph-contact-form-block__form input[type="url"],
.ph-contact-form-block__form input[type="tel"],
.ph-contact-form-block__form select,
.ph-contact-form-block__form textarea {
	width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    padding: 16px 18px;
    font-size: 1.1rem;
    color: var(--ph-black);
    background: var(--ph-gray-bg);
    line-height: 1.45;
    transition: border-color var(--ph-transition), box-shadow var(--ph-transition);
    border-radius: 22px;
}

.ph-contact-form-block__form .wpcf7-text::placeholder,
.ph-contact-form-block__form .wpcf7-email::placeholder,
.ph-contact-form-block__form .wpcf7-textarea::placeholder,
.ph-contact-form-block__form input::placeholder,
.ph-contact-form-block__form textarea::placeholder {
	color: var(--ph-gray-mid);
	opacity: 1;
}

.ph-contact-form-block__form textarea {
	min-height: 200px;
	resize: vertical;
}

.ph-contact-form-block__form .wpcf7-text:focus,
.ph-contact-form-block__form .wpcf7-email:focus,
.ph-contact-form-block__form .wpcf7-textarea:focus,
.ph-contact-form-block__form input:focus,
.ph-contact-form-block__form textarea:focus {
	outline: none;
	border-color: var(--ph-green);
	box-shadow: 0 0 0 3px rgba(70, 159, 16, 0.12);
}

.ph-contact-form-block__form .wpcf7-submit,
.ph-contact-form-block__form input[type="submit"] {
	width: 100%;
	margin-top: 0;
    padding: 18px 24px;
    border: none;
    border-radius: 30px;
    background: var(--ph-green);
    color: var(--ph-white);
    font-size: 1.35rem;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--ph-transition);
    line-height: 1.3;
}

.ph-contact-form-block__form .wpcf7-submit:hover,
.ph-contact-form-block__form input[type="submit"]:hover {
	background: var(--ph-green-dark);
}

.ph-contact-form-block__form .wpcf7-not-valid-tip {
	font-size: var(--ph-text-xs);
	margin-top: 6px;
	color: #b91c1c;
}

.ph-contact-form-block__form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 5px;
	font-size: var(--ph-text-sm);
}

/* ---- Social row ---- */

.ph-contact-social {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ph-contact-social__item {
	text-decoration: none;
}

.ph-contact-social__circle {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ph-green);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ph-white);
	transition: transform var(--ph-transition), box-shadow var(--ph-transition);
	box-shadow: 0 2px 8px rgba(70, 159, 16, 0.25);
}

.ph-contact-social__circle svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.ph-contact-social__item:hover .ph-contact-social__circle {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(70, 159, 16, 0.35);
}

.ph-contact-social__circle :is(img) {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}

/* ---- Location row ---- */

.ph-contact-location {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	max-width: 560px;
	width: 100%;
	margin: 0 auto 40px;
	padding: 28px 32px;
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 16px;
	box-shadow: var(--ph-shadow-sm);
	text-align: left;
}


.ph-contact-location__pin-svg {
	display: block;
    width: 15px;
    height: auto;
    aspect-ratio: 15 / 20;
    flex-shrink: 0;
    transform: translateY(4px);
}

.ph-contact-location__text {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
p.ph-contact-location__title {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.ph-contact-location__title {
	margin: 0;
	font-size: 1.25rem;
	color: var(--ph-black);
	font-weight: 900;
}

.ph-contact-location__note {
	margin: 0;
	font-size: 1.1rem;
	color: var(--ph-gray);
	line-height: 1.45;
	font-weight: 500;
}

/* ---- Bottom CTA (inherits .ph-cta) ---- */

.ph-contact-bottom-cta {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: none;
	border-radius: 0;
	margin-top: 16px;
	padding-top: 72px;
	padding-bottom: 88px;
}

.ph-contact-bottom-cta .ph-cta__inner {
	max-width: var(--ph-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

@media (max-width: 900px) {
	.ph-contact-cards {
		grid-template-columns: 1fr;
	}

	.ph-contact-hero,
	.ph-contact-form-block__inner {
		padding: 28px 22px 32px;
	}

	.ph-contact-media__inner {
		padding: 28px 22px 32px;
	}
}

@media (max-width: 768px) {
	.ph-contact-page {
		padding-top: 28px;
	}

	.ph-contact-bottom-cta {
		padding-top: 48px;
		padding-bottom: 56px;
	}
	.ph-contact-hero__intro{
		font-size: 1.4rem;
	}
}
