/**
 * Booking Agreement Styling
 *
 * Define UI styling for the Booking Agreement page
 *
 * @package     Trains
 * @subpackage  Booking
 * @author      Rone Webtech <help@rone.co.za>
 * @copyright   2021-2026 Pentravel
 * @version     1.07.01
 */

/*
	General formatting
*/

body {
	font-size: 12px;
	margin: 0;
	background-color: #999;
}

body, table {
	font-family: Arial, Helvetica, sans-serif;
}

fieldset {
	margin-bottom: 1mm;
}

.agreement-document {
	width: 198mm;
	position: relative;
	background-color: #fff;
	padding: 6mm;
	margin: auto;
}

/* Hackfix to hide overlays */
#messenger-overlay-container {
	display: none;
}
#core-session-timeout-display {
	display: none;
}

/*
	Header section
*/

.agreement-header td {
	vertical-align: top;
}

.agreement-header fieldset {
	width: 100%;
}

.document-summary {
	width: 100%;
	margin-bottom: 10px;
}

.document-summary th {
	font-weight: normal;
	width: 25%;
	text-align: left;
}

.document-summary td {
	width: 75%;
}

/*
	Price block override
*/

.agreement-priceblock-description {
	width: 177mm !important;
}

.agreement-priceblock-description-extra {
	width: 177mm !important;
}


/*
	Payment section
*/

.dpo-payment-link, /* LEGACY DEFINITION */
.agreement-button {
	background-color: #00f;
	color: #fff;
	border: 1px #00a solid;
	border-radius: 3px;
	padding: 6px 30px;
	font-weight: bold;
	box-shadow: 2px 2px #666;
}

.dpo-payment-link:hover, /* LEGACY DEFINITION */
.agreement-button:hover {
	background-color: #00a;
}


/*
	Acceptance section
*/

.acceptance-option-block {
	border: 1px #ccc solid;
	border-radius: 4px;
	padding: 2px;
}

#btn-sign-agreement:hover {
	cursor: pointer;
	opacity: .9;
}

.acceptance-important {
	color: #f00;
}

#booking-agreement-form > div {
	margin-bottom: 6px;
}

#booking-agreement-form label {
	padding: 2px;
}
#booking-agreement-form label:hover {
	background-color: #ececec;
}

input[name="signed_name"] {
	width: 200px;
}

textarea[name="emergency_contact_details"] {
	width: 100%;
}

input[type="text"].acceptance-missing-info,
textarea.acceptance-missing-info,
.acceptance-option-block.acceptance-missing-info {
	border: 1px #f66 solid;
	box-shadow: 0 0 4px #f66;
}

input[type="text"].acceptance-confirmed-info,
textarea.acceptance-confirmed-info,
.acceptance-option-block.acceptance-confirmed-info {
	border: 1px #6f6 solid;
	box-shadow: 0 0 4px #6f6;
}

#btn-sign-agreement.acceptance-missing-info {
	background-color: #f97d8b;
	border-color: #f67;
}
#btn-sign-agreement.acceptance-missing-info:hover {
	background-color: #f56;
}

#manual-sign-block {
	display: none;
}
.manual-signature,
.manual-signature-date {
	display:inline-block;
	width:250px;
	border-top: 1px #aaa solid;
	margin-left: 60px;
	margin-top: 60px;
	padding: 8px;
}

/*
	Stamp overlays
*/

.agreement-preview {
	position:absolute;
	font-size: 36px;
	font-weight: bold;
	text-align: center;
	color: #f00;
	opacity: .25;
	width: 85%;
	top: 100px;
}

/*
	Extra controls
*/

.agreement-print-button {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: #ddd;
	color: #000;
	border: 1px #333 solid;
	border-radius: 3px;
	padding: 6px 10px;
	font-weight: bold;
	box-shadow: 2px 2px #666;
	cursor: pointer;
}

/*
	Print formatting
*/
@media print {
	::-webkit-input-placeholder { /* WebKit browsers */
		color: transparent;
	}
	:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
		color: transparent;
	}
	::-moz-placeholder { /* Mozilla Firefox 19+ */
		color: transparent;
	}
	:-ms-input-placeholder { /* Internet Explorer 10+ */
		color: transparent;
	}

	.print-pagebreak {
		page-break-before: always; /* page-break-after works, as well */
		margin-top: 5mm;
	}

	#manual-sign-block {
		display: block;
	}

	#btn-sign-agreement {
		display: none;
	}

	input[type="text"].acceptance-missing-info,
	textarea.acceptance-missing-info,
	.acceptance-option-block.acceptance-missing-info {
		border: 1px #aaa solid;
		box-shadow: none;
	}

	input[type="text"].acceptance-confirmed-info,
	textarea.acceptance-confirmed-info,
	.acceptance-option-block.acceptance-confirmed-info {
		border: 1px #aaa solid;
		box-shadow: none;
	}

	.agreement-print-button {
		display: none;
	}
}
