/*
Theme Name: Cobox Child (Meetly Space)
Theme URI: https://meetlyspace.id
Description: Child theme of Cobox for Meetly Space. Applies the Meetly design system (Poppins + navy/lime palette) from the Figma mockups on top of the Cobox parent theme. Safe to update the parent without losing customizations.
Author: maulanadamn
Author URI: https://meetlyspace.id
Template: cobox
Version: 0.5.0
Requires PHP: 7.4
Text Domain: cobox-child
*/

/* =========================================================================
   MEETLY SPACE — DESIGN TOKENS
   Sampled from the Figma style guide swatches.
   ========================================================================= */
/* Utility: sembunyikan elemen (dipakai untuk counter/section demo di homepage) */
.meetly-hidden { display: none !important; }

/* =========================================================================
   HEADER NAV — teks putih di atas latar navy (desktop). Hover/aktif = lime.
   Mobile offcanvas tidak diubah (biar tetap terbaca di latarnya sendiri).
   ========================================================================= */
@media (min-width: 992px) {
	.ekit-template-content-markup .elementskit-navbar-nav > li > a.ekit-menu-nav-link {
		color: #ffffff !important;
	}
	.ekit-template-content-markup .elementskit-navbar-nav > li > a.ekit-menu-nav-link:hover,
	.ekit-template-content-markup .elementskit-navbar-nav > li.current-menu-item > a.ekit-menu-nav-link,
	.ekit-template-content-markup .elementskit-navbar-nav > li > a.ekit-menu-nav-link.active {
		color: var(--meetly-lime) !important;
	}
}

:root {
	/* Brand palette */
	--meetly-navy:        #0A1F5B; /* primary / darkest navy   */
	--meetly-navy-2:      #132A6B; /* mid navy                 */
	--meetly-navy-3:      #1C317C; /* lighter navy / alt blue  */
	--meetly-lime:        #BFF44D; /* accent (CTA, highlights) */
	--meetly-lime-600:    #A6DB2E; /* lime hover               */
	--meetly-grey-100:    #EBEDF0; /* light surface / divider  */
	--meetly-slate:       #60707C; /* muted text / icons       */
	--meetly-white:       #FFFFFF;
	--meetly-ink:         #101828; /* body text                */

	/* Radii / shadow used across the mockups */
	--meetly-radius:      16px;
	--meetly-radius-pill: 999px;
	--meetly-shadow:      0 12px 40px rgba(10, 31, 91, .12);
}

/* =========================================================================
   MAP ONTO ELEMENTOR GLOBAL VARIABLES
   Cobox reads all colors/fonts from these Elementor globals, so redefining
   them re-themes the entire site (header, footer, every Elementor section).
   Defined on :root AND body so it wins regardless of Elementor CSS load order.
   ========================================================================= */
:root,
body {
	--e-global-color-primary:    var(--meetly-navy);
	--e-global-color-secondary:  var(--meetly-navy-3);
	--e-global-color-accent:     var(--meetly-lime);
	--e-global-color-text:       var(--meetly-ink);
	--e-global-color-white:      var(--meetly-white);
	--e-global-color-background: var(--meetly-white);
	--e-global-color-divider:    var(--meetly-grey-100);

	--e-global-typography-primary-font-family:   "Poppins";
	--e-global-typography-secondary-font-family: "Poppins";
	--e-global-typography-text-font-family:      "Poppins";
	--e-global-typography-accent-font-family:    "Poppins";
}

/* =========================================================================
   BASE TYPOGRAPHY — Poppins
   ========================================================================= */
body,
button,
input,
select,
textarea {
	font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Poppins", sans-serif;
	color: var(--meetly-navy);
	font-weight: 700;
}

/* =========================================================================
   SIGNATURE CTA — lime pill button ("Schedule A Free Tour" style)
   Conservative: targets Elementor buttons that use the accent background.
   ========================================================================= */
.meetly-btn-pill,
.elementor-button.meetly-btn-pill {
	background-color: var(--meetly-lime);
	color: var(--meetly-navy);
	border-radius: var(--meetly-radius-pill);
	font-weight: 600;
	padding: 14px 28px;
	transition: background-color .2s ease, transform .2s ease;
}
.meetly-btn-pill:hover,
.elementor-button.meetly-btn-pill:hover {
	background-color: var(--meetly-lime-600);
	color: var(--meetly-navy);
	transform: translateY(-1px);
}

/* Utility helpers matching the mockups (available for page building) */
.meetly-card {
	background: var(--meetly-white);
	border-radius: var(--meetly-radius);
	box-shadow: var(--meetly-shadow);
}
.meetly-section-dark {
	background: var(--meetly-navy);
	color: var(--meetly-white);
}
.meetly-section-dark h1,
.meetly-section-dark h2,
.meetly-section-dark h3 {
	color: var(--meetly-white);
}

/* =========================================================================
   BOOKING FORM — form booking tour (CF7) di halaman "Hubungi Dan Reservasi"
   Markup diatur oleh form CF7 "Meetly Booking Tour" (wrapper .meetly-booking).
   ========================================================================= */
.meetly-booking {
	width: 100%;
}

/* Baris 2 kolom yang rapi & responsif */
.meetly-booking .mb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 18px;
}
.meetly-booking .mb-field {
	flex: 1 1 calc(50% - 9px);
	min-width: 220px;
	display: flex;
	flex-direction: column;
	margin: 0;
}
.meetly-booking .mb-full {
	flex-basis: 100%;
	margin-bottom: 18px;
}

/* Label */
.meetly-booking label {
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--meetly-navy);
	margin-bottom: 7px;
}
.meetly-booking label span {
	color: var(--meetly-lime-600);
}

/* Input / select / textarea / date / time */
.meetly-booking .mb-input,
.meetly-booking input.mb-input,
.meetly-booking select.mb-input,
.meetly-booking textarea.mb-input {
	width: 100%;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	color: var(--meetly-ink);
	background: var(--meetly-white);
	border: 1.5px solid var(--meetly-grey-100);
	border-radius: 12px;
	padding: 12px 14px;
	transition: border-color .18s ease, box-shadow .18s ease;
	box-sizing: border-box;
}
.meetly-booking textarea.mb-input {
	min-height: 120px;
	resize: vertical;
}
.meetly-booking .mb-input:focus {
	outline: none;
	border-color: var(--meetly-navy-3);
	box-shadow: 0 0 0 3px rgba(28, 49, 124, .12);
}
.meetly-booking .mb-input::placeholder {
	color: var(--meetly-slate);
	opacity: .8;
}
.meetly-booking select.mb-input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A1F5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

/* Hint kecil */
.meetly-booking .mb-hint {
	display: inline-block;
	font-size: 13px;
	color: var(--meetly-slate);
	padding-top: 10px;
}

/* Tombol submit (pakai pill lime signature) + spinner CF7 */
.meetly-booking .mb-submit {
	margin: 4px 0 0;
}
.meetly-booking .meetly-btn-pill {
	border: none;
	cursor: pointer;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	width: auto;
}
.meetly-booking .wpcf7-spinner {
	margin: 0 0 0 12px;
}

/* Pesan respons CF7 */
.meetly-booking .wpcf7-response-output,
.wpcf7-response-output {
	border-radius: 12px !important;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	margin: 18px 0 0 !important;
	padding: 12px 16px !important;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--meetly-lime-600) !important;
	background: rgba(191, 244, 77, .14);
	color: var(--meetly-navy);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	background: #fdecec;
	color: #8a1f1f;
}
.meetly-booking .wpcf7-not-valid-tip {
	font-size: 12.5px;
	color: #c0392b;
	margin-top: 5px;
}
.meetly-booking .mb-input.wpcf7-not-valid {
	border-color: #e07a7a;
}

/* Mobile: satu kolom */
@media (max-width: 600px) {
	.meetly-booking .mb-field {
		flex-basis: 100%;
	}
}

/* =========================================================================
   RUANG & TARIF — shortcode [meetly_rates] (dari poster "Our Space and Rates")
   ========================================================================= */
.meetly-rates {
	width: 100%;
}
.meetly-rates .mr-head {
	text-align: center;
	margin-bottom: 34px;
}
.meetly-rates .mr-head h2 {
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	color: var(--meetly-navy);
	font-size: clamp(26px, 4vw, 38px);
	margin: 0 0 8px;
}
.meetly-rates .mr-head p {
	color: var(--meetly-slate);
	font-size: 16px;
	margin: 0;
}

/* Grid kartu ruangan */
.meetly-rates .mr-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
@media (max-width: 900px) { .meetly-rates .mr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .meetly-rates .mr-grid { grid-template-columns: 1fr; } }

.meetly-rates .mr-card {
	background: var(--meetly-white);
	border: 1px solid var(--meetly-grey-100);
	border-radius: var(--meetly-radius);
	box-shadow: var(--meetly-shadow);
	padding: 24px 22px;
	display: flex;
	flex-direction: column;
}
.meetly-rates .mr-name {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	color: var(--meetly-navy);
	font-size: 20px;
	margin: 0 0 14px;
	padding-left: 12px;
	border-left: 4px solid var(--meetly-lime);
	line-height: 1.2;
}

/* Kapasitas */
.meetly-rates .mr-caps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.meetly-rates .mr-cap {
	font-size: 12.5px;
	color: var(--meetly-navy);
	background: var(--meetly-grey-100);
	border-radius: var(--meetly-radius-pill);
	padding: 5px 12px;
	line-height: 1.3;
}
.meetly-rates .mr-cap strong {
	color: var(--meetly-navy);
	font-weight: 700;
}

/* Tabel harga — gaya poster: sel harga lime */
.meetly-rates .mr-rates {
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px;
	margin: 0 0 20px;
}
.meetly-rates .mr-rates th {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: var(--meetly-navy);
	background: var(--meetly-white);
	padding: 6px 4px;
	text-align: center;
	width: 33.33%;
}
.meetly-rates .mr-rates td {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--meetly-navy);
	background: var(--meetly-lime);
	border-radius: 8px;
	padding: 12px 4px;
	text-align: center;
	white-space: nowrap;
}

/* Tombol booking */
.meetly-rates .mr-btn {
	margin-top: auto;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

/* Blok F&B + Fasilitas */
.meetly-rates .mr-extra {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 22px;
	margin-top: 26px;
}
@media (max-width: 760px) { .meetly-rates .mr-extra { grid-template-columns: 1fr; } }
.meetly-rates .mr-box {
	background: var(--meetly-lime);
	border-radius: var(--meetly-radius);
	padding: 22px 24px;
}
.meetly-rates .mr-box h4 {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	color: var(--meetly-navy);
	font-size: 18px;
	margin: 0 0 12px;
}
.meetly-rates .mr-box ul {
	margin: 0;
	padding-left: 18px;
	color: var(--meetly-navy);
}
.meetly-rates .mr-box li {
	font-size: 14.5px;
	margin-bottom: 6px;
}
.meetly-rates .mr-faclist {
	list-style: none;
	padding-left: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}
.meetly-rates .mr-faclist li {
	background: rgba(10, 31, 91, .08);
	border-radius: var(--meetly-radius-pill);
	padding: 6px 14px;
	font-size: 13px;
	margin: 0;
}
