/* ==========================================================
   Gwolle Review Widget — Huisstijl klussenbedrijfmaarssen.wpprovider.nl
   Gebruikt Elementor globale CSS-variabelen zodat kleuren
   automatisch overeenkomen met de site-instellingen.
   ========================================================== */

/* -- Google Font (zelfde als site) ----------------------- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* -- Reset binnen widget ---------------------------------- */
.grw-form-wrap *,
.grw-form-wrap *::before,
.grw-form-wrap *::after {
	box-sizing: border-box;
}

/* -- Fallback-kleuren (gebruikt wanneer Elementor-variabelen
      niet beschikbaar zijn, bijv. tijdens preview)         */
.grw-form-wrap {
	--grw-primary:    var(--e-global-color-primary,    #1c3a52);
	--grw-secondary:  var(--e-global-color-secondary,  #c9a84c);
	--grw-bg:         var(--e-global-color-4da9a17,    #1b3348);
	--grw-bg-alt:     var(--e-global-color-c546c7d,    #243e58);
	--grw-text:       var(--e-global-color-fdf12ae,    #e8e4dc);
	--grw-text-muted: rgba(232, 228, 220, 0.65);
	--grw-border:     rgba(255, 255, 255, 0.12);
	--grw-input-bg:   rgba(0, 0, 0, 0.20);
	--grw-radius:     30px;
}

/* -- Container -------------------------------------------- */
.grw-form-wrap {
	font-family: 'Source Sans Pro', var(--e-global-typography-text-font-family, sans-serif);
	font-size: 15px;
	color: var(--grw-text);
	background: var(--grw-bg);
	border-radius: var(--grw-radius);
	box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
	overflow: hidden;
	max-width: 700px;
	margin: 0 auto;
}

/* -- Titelbalk met gradient (zelfde patroon als site-hero) - */
.grw-title-bar {
	position: relative;
	padding: 36px 35px 30px;
	text-align: center;
	background-color: var(--grw-primary);
	background-image: linear-gradient(
		160deg,
		var(--e-global-color-f130dd2, #1c3a52) 0%,
		var(--e-global-color-131f790, #0d2133) 100%
	);
	overflow: hidden;
}

/* Decoratieve golf — zelfde sfeer als "Calm-waves.png" overlay */
.grw-title-bar::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 28px;
	background: var(--grw-bg);
	clip-path: ellipse(55% 100% at 50% 100%);
}

/* -- Sterren --------------------------------------------- */
.grw-star-rating {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-bottom: 12px;
}

.grw-star-rating .star {
	font-size: 26px;
	color: rgba(255, 255, 255, .30);
	cursor: pointer;
	transition: color .15s, transform .12s;
	user-select: none;
	line-height: 1;
}

.grw-star-rating .star:hover,
.grw-star-rating .star.hover,
.grw-star-rating .star.active {
	color: var(--grw-secondary);
	transform: scale(1.18);
}

/* -- Titel & subtitel ------------------------------------ */
.grw-form-title {
	margin: 0 0 8px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.grw-form-subtitle {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--grw-text-muted);
	line-height: 1.5;
}

/* -- Formulier ------------------------------------------ */
.grw-review-form {
	padding: 35px;
}

/* Honeypot: volledig verbergen */
.grw-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -- Tweekoloms rij -------------------------------------- */
.grw-fields-row {
	display: flex;
	gap: 16px;
}

.grw-col-half {
	flex: 1 1 calc(50% - 8px);
	min-width: 0;
}

@media (max-width: 520px) {
	.grw-fields-row {
		flex-direction: column;
		gap: 0;
	}
	.grw-col-half {
		flex: 1 1 100%;
	}
	.grw-review-form {
		padding: 24px 20px 22px;
	}
	.grw-title-bar {
		padding: 28px 20px 24px;
	}
	.grw-form-title {
		font-size: 21px;
	}
}

/* -- Veldgroep ------------------------------------------ */
.grw-form-group {
	margin-bottom: 18px;
}

.grw-form-group label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--grw-secondary);
	margin-bottom: 7px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.grw-req {
	color: var(--grw-secondary);
	margin-left: 2px;
}

.grw-form-group input,
.grw-form-group textarea {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	color: var(--grw-text);
	background: var(--grw-input-bg);
	border: 1.5px solid var(--grw-border);
	border-radius: 12px;
	transition: border-color .2s, background .2s, box-shadow .2s;
	outline: none;
	resize: vertical;
}

.grw-form-group input::placeholder,
.grw-form-group textarea::placeholder {
	color: var(--grw-text-muted);
}

.grw-form-group input:focus,
.grw-form-group textarea:focus {
	background: rgba(0, 0, 0, .30);
	border-color: var(--grw-secondary);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, .18);
}

.grw-form-group input.grw-invalid,
.grw-form-group textarea.grw-invalid {
	border-color: #e05252;
	box-shadow: 0 0 0 3px rgba(224, 82, 82, .15);
}

/* -- Scheidingslijn -------------------------------------- */
.grw-divider {
	height: 1px;
	background: var(--grw-border);
	margin: 4px 0 20px;
}

/* -- Voettekst formulier --------------------------------- */
.grw-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.grw-privacy-note {
	margin: 0;
	font-size: 12px;
	color: var(--grw-text-muted);
}

/* -- Knop ------------------------------------------------ */
.grw-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	background-color: var(--grw-primary);
	color: var(--grw-secondary);
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 13px;
	font-weight: 700;
	border: 2px solid var(--grw-secondary);
	border-radius: 50px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	transition: background-color .25s, color .25s, transform .12s, box-shadow .25s;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
	white-space: nowrap;
}

.grw-submit-btn:hover {
	background-color: var(--grw-secondary);
	color: var(--grw-bg);
	box-shadow: 0 6px 22px rgba(201, 168, 76, .35);
}

.grw-submit-btn:active {
	transform: translateY(1px);
}

.grw-submit-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.grw-btn-icon {
	font-size: 13px;
	transition: transform .2s;
}

.grw-submit-btn:hover .grw-btn-icon {
	transform: translateX(4px);
}

/* -- Notificaties ---------------------------------------- */
.grw-notice {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.grw-notice--success {
	background: rgba(39, 174, 96, .15);
	border-left: 4px solid #27ae60;
	color: #7dcea0;
}

.grw-notice--error {
	background: rgba(224, 82, 82, .12);
	border-left: 4px solid #e05252;
	color: #f0a0a0;
}

/* -- Spinner op knop ------------------------------------- */
@keyframes grw-spin {
	to { transform: rotate(360deg); }
}

.grw-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(201, 168, 76, .35);
	border-top-color: var(--grw-secondary);
	border-radius: 50%;
	animation: grw-spin .7s linear infinite;
}
