/**
 * PerfectVision Golf — Registration Form Styles
 */

/* =========================================================================
   Registration List (My Account > Registrations)
   ========================================================================= */

.pvg-registrations-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.pvg-registrations-table th,
.pvg-registrations-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.pvg-registrations-table th {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1px;
	color: #666;
	background: #f9f9f9;
}

.pvg-status {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 3px;
}

.pvg-status-complete {
	background: #d4edda;
	color: #155724;
}

.pvg-status-incomplete {
	background: #fff3cd;
	color: #856404;
}

.pvg-logo-yes {
	color: #27ae60;
	font-size: 18px;
}

.pvg-logo-no {
	color: #e74c3c;
	font-size: 18px;
}

/* =========================================================================
   Registration Edit Form
   ========================================================================= */

.pvg-registration-form-wrap {
	max-width: 900px;
}

.pvg-registration-form-wrap h3 {
	font-size: 24px;
	margin-bottom: 20px;
}

.pvg-form-section {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #eee;
}

.pvg-form-section:last-of-type {
	border-bottom: none;
}

.pvg-form-section h4 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.pvg-form-help {
	color: #888;
	font-size: 13px;
	margin-bottom: 15px;
}

.pvg-form-note {
	color: #856404;
	background: #fff3cd;
	padding: 12px 15px;
	font-size: 13px;
	margin-top: 15px;
	border-left: 3px solid #ffc107;
}

/* =========================================================================
   Top Row: Company/Organization + Logo Upload (side by side)
   ========================================================================= */

.pvg-form-top-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #eee;
}

.pvg-form-top-row .pvg-form-section {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.pvg-form-top-left {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.pvg-form-top-right {
	display: flex;
	flex-direction: column;
}

@media (max-width: 767px) {
	.pvg-form-top-row {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Logo Upload
   ========================================================================= */

.pvg-logo-section {
	border: 1px solid #ddd;
	padding: 20px;
	text-align: center;
}

.pvg-logo-section h4 {
	margin-bottom: 4px;
}

.pvg-logo-section .pvg-form-help {
	margin-bottom: 12px;
}

.pvg-logo-upload-area {
	margin-top: 10px;
}

.pvg-logo-dropzone {
	border: 2px dashed #ccc;
	padding: 30px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.pvg-logo-dropzone:hover,
.pvg-logo-dropzone.pvg-dragover {
	border-color: #6ABF69;
	background: #f8f8ff;
}

.pvg-logo-dropzone p {
	margin: 0;
	color: #666;
}

.pvg-logo-preview {
	position: relative;
	display: inline-block;
	max-width: 200px;
}

.pvg-logo-preview img {
	max-width: 100%;
	height: auto;
	border: 1px solid #eee;
}

.pvg-remove-logo {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 28px;
	height: 28px;
	background: #e74c3c;
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pvg-remove-logo:hover {
	background: #c0392b;
}

/* =========================================================================
   Notification Preference Toggle
   ========================================================================= */

.pvg-notification-pref {
	margin-top: 20px;
}

.pvg-notification-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
}

.pvg-toggle-group {
	display: flex;
	gap: 24px;
	align-items: center;
}

.pvg-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

.pvg-toggle input[type="checkbox"] {
	position: relative;
	width: 44px;
	height: 24px;
	-webkit-appearance: none;
	appearance: none;
	background: #ccc;
	border-radius: 12px;
	outline: none;
	cursor: pointer;
	transition: background 0.2s;
	flex-shrink: 0;
	border: none;
	padding: 0;
}

.pvg-toggle input[type="checkbox"]::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.pvg-toggle input[type="checkbox"]:checked {
	background: #6ABF69;
}

.pvg-toggle input[type="checkbox"]:checked::before {
	transform: translateX(20px);
}

.pvg-toggle-text {
	font-weight: 500;
}

/* =========================================================================
   Total Players Field
   ========================================================================= */

.pvg-total-players-field {
	margin-bottom: 25px;
}

.pvg-total-players-field label {
	font-size: 14px;
	color: #333;
	display: inline-block;
	margin-right: 12px;
}

.pvg-total-players-field input[type="number"] {
	display: inline-block;
	width: auto;
	min-width: 200px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 0;
	font-size: 14px;
	vertical-align: middle;
}

.pvg-total-players-field input[type="number"]:focus {
	border-color: #6ABF69;
	outline: none;
}

/* =========================================================================
   Player Rows
   ========================================================================= */

.pvg-player-row {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	margin-bottom: 15px;
	padding: 0;
}

.pvg-player-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	background: #eee;
	border-bottom: 1px solid #ddd;
}

.pvg-player-header h5 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.pvg-remove-player {
	background: none;
	border: none;
	color: #e74c3c;
	font-size: 22px;
	cursor: pointer;
	padding: 0 5px;
	line-height: 1;
}

.pvg-remove-player:hover {
	color: #c0392b;
}

.pvg-player-fields {
	padding: 20px;
}

.pvg-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.pvg-field-row:last-child {
	margin-bottom: 0;
}

/* Four-column row for Gender / Status / Senior / Handedness */
.pvg-field-row-4 {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 767px) {
	.pvg-field-row-4 {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 575px) {
	.pvg-field-row {
		grid-template-columns: 1fr;
	}
	.pvg-field-row-4 {
		grid-template-columns: 1fr 1fr;
	}
}

.pvg-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.pvg-field label .required {
	color: #e74c3c;
}

.pvg-field input,
.pvg-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 0;
	font-size: 14px;
	box-sizing: border-box;
}

.pvg-field input:focus,
.pvg-field select:focus {
	border-color: #6ABF69;
	outline: none;
}

/* =========================================================================
   USGA Disclaimer
   ========================================================================= */

.pvg-usga-disclaimer {
	font-size: 12px;
	color: #666;
	line-height: 1.5;
	margin: 10px 0 15px;
	padding: 10px 12px;
	background: #f5f5f5;
	border-left: 3px solid #333;
}

.pvg-usga-disclaimer .pvg-tooltip {
	font-size: 16px;
	vertical-align: middle;
	margin-right: 4px;
	margin-left: 0;
}

/* =========================================================================
   Club Rental Field
   ========================================================================= */

.pvg-club-rental-field {
	margin-top: 15px;
}

.pvg-club-rental-field > label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

.pvg-club-rental-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.pvg-club-rental-row select {
	width: auto;
	min-width: 120px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 0;
	font-size: 14px;
	flex-shrink: 0;
}

.pvg-club-rental-note {
	font-size: 12px;
	color: #888;
	line-height: 1.4;
	font-style: italic;
	padding-top: 6px;
}

/* =========================================================================
   Tooltip
   ========================================================================= */

.pvg-tooltip {
	cursor: help;
	color: #666;
	font-size: 14px;
	margin-left: 4px;
}

.pvg-tooltip-popup {
	position: absolute;
	z-index: 9999;
	max-width: 300px;
	padding: 10px 14px;
	background: #3d8c3b;
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	border-radius: 4px;
	pointer-events: none;
}

/* =========================================================================
   Form Actions / Buttons
   ========================================================================= */

.pvg-form-actions {
	display: flex;
	gap: 15px;
	margin-top: 30px;
	justify-content: center;
}

.pvg-registration-form .pvg-btn {
	display: inline-block;
	padding: 14px 30px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
	text-align: center;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

.pvg-registration-form .pvg-btn-primary {
	background: #6ABF69;
	color: #fff;
	border-color: #6ABF69;
	min-width: 200px;
}

.pvg-registration-form .pvg-btn-primary:hover {
	background: #fff;
	color: #6ABF69;
	border-color: #6ABF69;
}

.pvg-registration-form .pvg-btn-secondary {
	background: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
}

.pvg-registration-form .pvg-btn-secondary:hover {
	background: #e5e5e5;
	color: #333;
}

/* Add player button */
#pvg-add-player {
	border: 2px solid #333;
	background: #333;
	color: #fff;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

#pvg-add-player:hover {
	background: #fff;
	color: #333;
}

@media (max-width: 575px) {
	.pvg-form-actions {
		flex-direction: column;
	}
}

/* =========================================================================
   Pending Status Badge
   ========================================================================= */

.pvg-status-pending {
	background: #e8f4fd;
	color: #0c5460;
}

/* =========================================================================
   Pending Banner (shown at top of registration form)
   ========================================================================= */

.pvg-pending-banner {
	background: #e8f4fd;
	border: 1px solid #bee5eb;
	border-left: 4px solid #17a2b8;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.pvg-pending-banner h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #0c5460;
}

.pvg-pending-banner p {
	margin: 0;
	color: #0c5460;
	font-size: 14px;
	line-height: 1.5;
}

.pvg-pending-banner a {
	color: #6ABF69;
	font-weight: 600;
	text-decoration: underline;
}

.pvg-pending-banner a:hover {
	color: #3d8c3b;
}

/* =========================================================================
   Welcome Card (shown once after account creation)
   ========================================================================= */

.pvg-welcome-card {
	background: #f0f9f0;
	border: 1px solid #c3e6c3;
	border-left: 4px solid #6ABF69;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.pvg-welcome-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: #155724;
}

.pvg-welcome-card p {
	margin: 0 0 8px;
	color: #155724;
	font-size: 14px;
	line-height: 1.5;
}

.pvg-welcome-card p:last-child {
	margin-bottom: 0;
}

/* =========================================================================
   Empty State (no registrations yet)
   ========================================================================= */

.pvg-empty-state {
	text-align: center;
	padding: 40px 20px;
}

.pvg-empty-state h3 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #333;
}

.pvg-empty-state p {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	max-width: 500px;
	margin: 0 auto 20px;
}

.pvg-empty-state .pvg-btn {
	display: inline-block;
	padding: 14px 30px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
	text-align: center;
	border: 2px solid #6ABF69;
	background: #6ABF69;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

.pvg-empty-state .pvg-btn:hover {
	background: #fff;
	color: #6ABF69;
}

.pvg-empty-state-note {
	font-size: 12px;
	color: #888;
	margin-top: 15px;
}

/* =========================================================================
   Score Entry Placeholder
   ========================================================================= */

.pvg-score-entry-placeholder {
	padding: 30px 0;
}

.pvg-score-entry-placeholder h3 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
}

.pvg-score-entry-placeholder p {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}
