/*
Theme Name: Nobility Expense Reimbursement
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nobility-expense-reimbursement
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/

* {
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
}

.reimbursement-wrapper {
	position: relative;
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-image: url('/wp-content/uploads/2026/08/bg-form.webp');
}


/* =========================================
   BACKGROUND OVERLAY
========================================= */

.reimbursement-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 35, 0.68);
	z-index: 0;
}


/* =========================================
   MAIN CONTAINER
========================================= */

.reimbursement-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.20);
	overflow: hidden;
}


/* =========================================
   HEADER
========================================= */

.reimbursement-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 25px 35px;
	border-bottom: 1px solid #eeeeee;
}

.brand-logo {
	font-size: 18px;
	font-weight: 700;
	color: #1c2b39;
}

.form-progress {
	display: flex;
	align-items: center;
}

.progress-step {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e9edf2;
	color: #697586;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.35s ease;
}

.progress-step.active {
	background: #1c2b39;
	color: #ffffff;
	transform: scale(1.05);
}

.progress-step.completed {
	background: #1c2b39;
	color: #ffffff;
}

.progress-line {
	width: 50px;
	height: 2px;
	background: #e1e5ea;
	transition: background 0.4s ease;
}

.progress-line.active {
	background: #1c2b39;
}


/* =========================================
   FORM STEPS
========================================= */

.form-step {
	display: none;
}

.form-step.active {
	display: block;
	animation: stepIn 0.45s ease forwards;
}

@keyframes stepIn {

	from {
		opacity: 0;
		transform: translateX(40px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}

}


/* =========================================
   STEP CONTENT
========================================= */

.step-content {
	padding: 55px;
}

.form-label-top {
	display: block;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #7a8795;
}

.step-content h1,
.step-content h2 {
	margin: 0 0 12px;
	font-size: 34px;
	line-height: 1.2;
	color: #182431;
}

.step-description {
	margin: 0 0 35px;
	color: #6f7b87;
	font-size: 15px;
	line-height: 1.7;
}


/* =========================================
   FORM GROUP
========================================= */
#amount::-webkit-inner-spin-button,
#amount::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
#amount {
	-moz-appearance: textfield;
	appearance: textfield;
}
.form-group {
	margin-bottom: 25px;
}
.post-password-form label input {
	margin-top: 10px;
}
.form_footer {
	display: flex;
	justify-content: center;
	align-items: center;
}

.form-group label, .post-password-form label {
	display: block;
	margin-bottom: 9px;
	color: #263442;
	font-size: 14px;
	font-weight: 600;
}

.form-group label span {
	color: #d64545;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea, .post-password-form input[type="password"] {
	width: 100%;
	border: 1px solid #dce2e8;
	border-radius: 10px;
	background: #ffffff;
	padding: 14px 16px;
	font-size: 15px;
	color: #263442;
	outline: none;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus, .post-password-form input[type="password"]:focus, .post-password-form input[type="password"]:hover {
	border-color: #1c2b39;
	box-shadow: 0 0 0 3px rgba(28, 43, 57, 0.08);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: #a1aab4;
}


/* =========================================
   AMOUNT
========================================= */

.amount-input {
	position: relative;
}

.amount-input>span {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #687583;
	font-weight: 600;
}

.amount-input input {
	padding-left: 35px !important;
}


/* =========================================
   ERROR
========================================= */

.field-error {
	margin-top: 7px;
	color: #d64545;
	font-size: 12px;
	min-height: 15px;
}

.input-error {
	border-color: #d64545 !important;
}


/* =========================================
   SECTION
========================================= */

.form-section {
	margin-top: 42px;
	padding-top: 35px;
	border-top: 1px solid #edf0f3;
}

.section-title {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	margin-bottom: 28px;
}

.section-number {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 10px;
	background: #edf1f4;
	color: #1c2b39;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

.section-title h3 {
	margin: 0 0 5px;
	font-size: 18px;
	color: #1d2a36;
}

.section-title p {
	margin: 0;
	color: #84909b;
	font-size: 13px;
}


/* =========================================
   WELCOME NAME
========================================= */

.welcome-name {
	padding: 14px 18px;
	margin-bottom: 10px;
	background: #f5f7f9;
	border-radius: 10px;
	color: #6d7884;
	font-size: 13px;
}

.welcome-name strong {
	color: #1c2b39;
	margin-left: 5px;
}


/* =========================================
   PAYMENT OPTIONS
========================================= */

.payment-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.payment-card {
	cursor: pointer;
}

.payment-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.payment-card-content {
	min-height: 130px;
	padding: 20px;
	border: 1px solid #dce2e8;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: all 0.25s ease;
}

.payment-card:hover .payment-card-content {
	border-color: #8d99a5;
	transform: translateY(-2px);
}

.payment-card input:checked+.payment-card-content {
	border-color: #1c2b39;
	background: #1c2b39;
	box-shadow: 0 0 0 2px rgba(28, 43, 57, 0.08);
}
.payment-card input:checked+.payment-card-content strong,
.payment-card input:checked+.payment-card-content span {
	color: #fff;
}

.payment-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: #e9edf1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1c2b39;
	font-weight: 700;
}

.payment-card-content strong {
	color: #263442;
	font-size: 14px;
	margin-bottom: 5px;
}

.payment-card-content span {
	color: #8a95a0;
	font-size: 11px;
}


/* =========================================
   UPLOAD
========================================= */

.upload-box {
	border: 2px dashed #ccd4dc;
	border-radius: 14px;
	padding: 40px 20px;
	text-align: center;
	background: #fafbfc;
	transition: all 0.25s ease;
}

.upload-box:hover,
.upload-box.dragover {
	border-color: #ff6633;
	background: #f5f7f9;
}
.recipient-name-wrapper {
	margin-top: 25px;
}

.upload-icon {
	width: 50px;
	height: 50px;
	margin: 0 auto 15px;
	border-radius: 50%;
	background: #e9edf1;
	color: #1c2b39;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
}

.upload-box h4 {
	margin: 0 0 5px;
	color: #263442;
	font-size: 16px;
}

.upload-box p {
	margin: 5px 0;
	color: #8b96a1;
	font-size: 13px;
}

.browse-btn {
	border: none;
	background: #ff6633;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}

.upload-help {
	display: block;
	margin-top: 14px;
	color: #8a95a0;
	font-size: 11px;
}


/* =========================================
   FILE LIST
========================================= */

.file-list {
	margin-top: 15px;
}

.file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	margin-bottom: 8px;
	border: 1px solid #e2e6ea;
	border-radius: 9px;
	background: #ffffff;
}

.file-info {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.file-icon {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 7px;
	background: #eef1f4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

.file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	color: #364452;
}

.remove-file {
	border: none;
	background: transparent;
	color: #d64545;
	cursor: pointer;
	font-size: 18px;
}


/* =========================================
   RECIPIENT
========================================= */

.recipient-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.recipient-card {
	cursor: pointer;
}

.recipient-card input {
	position: absolute;
	opacity: 0;
}

.recipient-card span {
	display: block;
	padding: 18px;
	border: 1px solid #dce2e8;
	border-radius: 10px;
	transition: all 0.25s ease;
}

.recipient-card input:checked+span {
	border-color: #1c2b39;
	background: #1c2b39;
}
.recipient-card input:checked+span strong, .recipient-card input:checked+span small {
color: #fff;
}

.recipient-card strong {
	display: block;
	margin-bottom: 5px;
	color: #263442;
	font-size: 14px;
}

.recipient-card small {
	color: #8a95a0;
	font-size: 12px;
}


/* =========================================
   CONFIRMATION
========================================= */

.confirmation-checkbox {
	margin-top: 35px;
}

.confirmation-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	color: #5f6b77;
	font-size: 13px;
}

.confirmation-checkbox input {
	width: 17px;
	height: 17px;
	margin-top: 1px;
}


/* =========================================
   BUTTONS
========================================= */

.primary-btn,
.submit-btn, .post-password-form input[type="submit"] {
	width: 100%;
	border: none;
	background: #FF6633;
	color: #ffffff;
	padding: 16px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: all 0.25s ease;
}

.primary-btn:hover,
.submit-btn:hover, .post-password-form input[type="submit"]:hover
 {
	background: #101b25;
	transform: translateY(-1px);
}

.primary-btn {
	max-width: 250px;
	margin-top: 25px;
}

.submit-btn {
	margin-top: 30px;
}

.submit-arrow {
	font-size: 18px;
}

.back-btn {
	border: none;
	background: transparent;
	color: #6c7883;
	margin: 18px auto 0;
	display: block;
	cursor: pointer;
	font-size: 13px;
}


/* =========================================
   SUCCESS
========================================= */

.success-step {
	min-height: 550px;
	display: none;
	align-items: center;
	justify-content: center;
}

.success-step.active {
	display: flex;
}

.success-content {
	text-align: center;
	max-width: 550px;
	padding: 60px 30px;
}

.success-icon {
	width: 75px;
	height: 75px;
	margin: 0 auto 25px;
	border-radius: 50%;
	background: #e8f3ec;
	color: #2d7a4b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 35px;
	font-weight: 700;
	animation: successPop 0.5s ease;
}

@keyframes successPop {

	0% {
		transform: scale(0);
		opacity: 0;
	}

	70% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}

}

.success-content h2 {
	margin-bottom: 15px;
}

.success-content p {
	color: #727e89;
	line-height: 1.7;
}

.reference-box {
	margin: 30px 0;
	padding: 20px;
	background: #f5f7f9;
	border-radius: 12px;
}

.reference-box span {
	display: block;
	margin-bottom: 7px;
	font-size: 10px;
	letter-spacing: 1.5px;
	color: #8a95a0;
}

.reference-box strong {
	font-size: 20px;
	color: #1c2b39;
}

.success-email {
	font-size: 13px;
}
.button_wrap {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

/* ==========================================================================
   WordPress Password Protected Page
   ========================================================================== */

.post-password-form {
	width: 100%;
	max-width: 520px;
	margin: 80px auto;
	padding: 45px 40px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}


/* Heading / Message */

.post-password-form p:first-child {
	margin: 0 0 28px;
	color: #333333;
	font-size: 18px;
	line-height: 1.6;
	text-align: center;
}


/* ==========================================================================
   Password Page Background
   ========================================================================== */

body:has(.post-password-form) {
	min-height: 100vh;
	background: #f5f7fa;
}


/* Center password form vertically */

body:has(.post-password-form) .site-main {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	box-sizing: border-box;
}


/* ==========================================================================
   Mobile
   ========================================================================== */


@media (max-width: 700px) {
	.post-password-form {
			max-width: 100%;
			margin: 40px 15px;
			padding: 32px 24px;
			border-radius: 14px;
		}
	
		.post-password-form p:first-child {
			font-size: 16px;
		}

	.reimbursement-wrapper {
		min-height: 100vh;
		align-items: center;
		justify-content: center;
		padding: 20px 12px;
		background-attachment: scroll;
	}

	.reimbursement-container {
		width: 100%;
		margin: 20px auto;
		border-radius: 15px;
	}

	.reimbursement-header {
		padding: 18px 20px;
	}

	.step-content {
		padding: 35px 22px;
	}

	.step-content h1,
	.step-content h2 {
		font-size: 27px;
	}

	.payment-options {
		grid-template-columns: 1fr;
	}

	.payment-card-content {
		min-height: 90px;
	}

	.recipient-options {
		grid-template-columns: 1fr;
	}

	.primary-btn {
		max-width: 100%;
	}

}