/* General Styling */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', sans-serif;
}

body {
	height: 100vh;
    width: 100vw;
}

.container {
	display: flex;
    width: 100%;
    height: 100%;
}

h1, h2, button{
	font-family: 'Poppins', sans-serif;
}
label, p, li, strong, span{
	font-family: 'Inter', sans-serif;
}

/* Left Section - Form */
.left-section {
    position: relative;
    width: 50%;
	background-color: #fff;
	padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: auto;
}

.left-section::-webkit-scrollbar {
	width: 5px;
}

.left-section::-webkit-scrollbar-thumb {
	background: #D9DCD6;
	border-radius: 3px;
}

/* Right Section - Image */
.right-section {
    position: relative;
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: #004899; /* Fallback color */
    color: #fff;
    text-align: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 0 4% 4% 0;
    z-index: 1;
    overflow: hidden;
}

/* Background image with opacity */
.right-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/banner.webp') no-repeat center center/cover;
    opacity: 0.5; /* Adjust transparency */
    border-radius: 0 4% 4% 0;
    z-index: -1;
}

/* Overlapping Cut Effect - Desktop (Right Side) */
.right-section::after {
    content: "";
    position: absolute;
    right: -40px; /* Moves the cut inside */
    top: 4%;
    bottom: 4%;
    width: 60px; /* Controls how deep the cut is */
    background: #fff;
    border-top-left-radius: 40px; 
    border-bottom-left-radius: 40px;
}

.right-section .logo a img {
    width: 450px;
}

.right-section h2 {
    color: #fff;
    text-align: center;
    font-size: 25px;
    margin: 0 auto;
}

/* Form Container */
form {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
	text-align: center;
	font-size: 23px;
	color: #004899;
    padding-bottom: 15px;
}

.required {
	color: red;
	top: 10%;
}

/* Form Groups */
.form-group {
	width: 100%;
	max-width:500px;
	display: none; /* Hide all steps by default: */
}

/* Field Styling */
select, input {
    box-sizing: border-box; /* Ensures padding and border are included in the width */
}

select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd; /* Softer border color */
	border-radius: 5px; /* Slightly more rounded for a modern feel */
	font-size: 16px;
	appearance: none;
	cursor: pointer;
	background-color: #fff;
	color: #333;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Softer shadow for depth */
	transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transitions */
    appearance: none; /* ✅ Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Fix background for dropdown options */
select option {
    background-color: #fff !important; /* ✅ Background for options */
    color: #333 !important; /* ✅ Ensure text is readable */
}

input, textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd; /* Softer border color */
	border-radius: 5px; /* Slightly more rounded for a modern feel */
	font-size: 16px;
	outline: none; /* Removes the default outline */
	background-color: #fff; /* White background for clarity */
	color: #333; /* Dark text for readability */
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Softer shadow for depth */
	transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transitions */
}

select:focus, input:focus, textarea:focus {
	border-color: #2F6690; /* Blue border on focus */
	box-shadow: 0 0 0 2px rgba(47, 102, 144, 0.1); /* Soft focus glow */
	outline: none; /* Removes default outline on focus */
}

/* Completely remove the yellow background from autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    background-color: transparent !important;
    -webkit-text-fill-color: #333 !important; /* ✅ Make text white */
    transition: background-color 5000s ease-in-out 0s;
}

/* Optional: Adding a little padding to textarea */
textarea {
	resize: none; /* Prevents resizing */
	min-height: 100px; /* Sets a minimum height */
}

input[type="tel"]::before {
    content: attr(data-prefix);
    position: absolute;
    left: 10px;
}

.select-container, .input-container, .textarea-container {
	position: relative;
	margin: 20px auto;
	display: flex;
    flex-direction: column;
    align-items: center;
	width: 100%;
	gap: 10px;
}

.select-container::after {
	content: "⌵";
	position: absolute;
	right: 20px;
	top: 45%;
	font-weight:bold;
	transform: translateY(-50%);
	color: #888;
	pointer-events: none;
}

.select-container label, .input-container label, .textarea-container label {
	position: absolute;
	left: 10px;
	top: 48%;
	transform: translateY(-50%);
	background: #fff;
	padding: 0 5px;
	color: #888;
	font-size: 13px;
	transition: all 0.3s ease;
	pointer-events: none;
}

/* Move label to top when select/input is focused or has a valid option selected or content */
select:focus + label,
select:valid + label,
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.textarea-container textarea:focus + label,
.textarea-container textarea:not(:placeholder-shown) + label {
	top: 0;
	font-size: 12px;
	color: #ff9800;
}


.custom-select-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-select-input:focus + .custom-select-dropdown,
.custom-select-input.open + .custom-select-dropdown {
    display: block;
}

.custom-select-dropdown {
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 180px;
    overflow-y: auto;
    display: none;
}

.custom-select-dropdown li {
    padding: 10px;
    cursor: pointer;
}

.custom-select-dropdown li:hover {
    background-color: #f0f0f0;
}

/* Floating label behavior */
.custom-select-input:focus ~ label,
.custom-select-input:not(:placeholder-shown) ~ label {
    top: 0px;
    font-size: 12px;
    color: #ff9800;
    background: white;
}

.select-container .spinner {
	position: absolute;
	top: 50%;
	right: 3rem;
	width: 1.5rem;
	height: 1.5rem;
	border: 2px solid #ccc;
	border-top-color: #333;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	transform: translateY(-50%);
	display: none; /* hidden by default */
}

@keyframes spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}


.rateLoadingSpinner {
    display: none;
    text-align: center;
}

.cardSpinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9800;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 10px auto;
    animation: cardSpin 1s linear infinite;
}

@keyframes cardSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.carrier-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin: 0 auto;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carrier-card.selected { 
    border: 1px solid #ff9800;
    box-shadow: 0 0 5px rgb(255, 152, 0, .6);
}

.carrier-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0; /* ensure logo stays fixed size */
}

.carrier-info {
    flex: 1;
}

.carrier-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.carrier-service {
    font-size: 14px;
    color: #555;
    margin: 3px 0;
}

.carrier-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.carrier-pickup,
.carrier-delivery {
    font-size: 12px;
    color: #666;
}


#shipmentType, .carrier-card {
    width: 30vw;
	max-width: 100%;
}

#fileError {
    display: none;
    color: red;
}

.invoice-alert-box {
    background-color: #ffecec; /* Light pink background */
    color: #e60033; /* Red text */
    font-style: italic;
    font-size: 13px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
	max-width:400px;
}

.invoice-alert-icon {
    font-weight: bold;
    font-size: 17px;
    background-color: #e60033; /* Red circle */
    color: white;
    border-radius: 50%;
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    justify-content: center;
    align-items: center; /* Centers vertically */
    margin-bottom: 10px;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* Hide default checkbox */
.checkbox-container input[type="checkbox"] {
    display: none;
}

/* Custom Checkbox */
.custom-checkbox {
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #aaa;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Prevent size change */
    overflow: hidden;       /* Prevent content from expanding box */
}

/* Checkbox Checked */
.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #005ecb;
    border-color: #005ecb;
}

/* Checkbox Checkmark */
.checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "\2713";
    color: #fff !important;
    font-size: 12px;
    font-weight: bold;
    line-height: 1; /* Prevent vertical size change */
    -webkit-text-fill-color: #fff !important; /* Fix for Safari on iOS */
    -webkit-text-stroke: 0px #fff !important;  /* Prevent black outline on iOS */
}

/* Hover Effect */
.checkbox-container:hover .custom-checkbox {
    border-color: #005ecb;
}

/* Focus Effect */
.checkbox-container input[type="checkbox"]:focus + .custom-checkbox {
    box-shadow: 0 0 5px rgba(0, 94, 203, 0.5);
}

/* Container for the three inputs */
.dimensions-container {
    display: flex;
    justify-content: space-between; /* Controls horizontal spacing */
    align-items: flex-start; /* Align items to the top */
    width: 100%;
	max-width: 400px;
    margin: 20px auto;
    gap: 10px; /* Controls the space between the two input containers */
}
.dimensions-container .input-container {
    position: relative;
    width: 50%; /* Ensures the inputs are not too wide, leaving some space between them */
    margin: 0;
    padding: 0;
}

.dimensions-container input {
    width: 100%; /* Ensures inputs take up full width of their container */
    margin: 0; /* Resets any default margin */
}

/* Button Styling */
button {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 40px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.formNavTab, .remove-container, #buttonContainer {
	display: flex;
	justify-content: center; /* ✅ Centers the button */
    width: 100%;
    max-width: 400px;
}

.formNavTab {
    gap: 10px; /* ✅ Adds spacing between buttons */
    padding-top: 20px;
    padding-bottom: 5px;
    visibility: hidden; /* Hide buttons on page load */
}

.formNavPre, .formNavNext {
    flex: 1; /* ✅ Ensures both buttons have equal width */
	transition: all 0.5s ease;
}

.formNavPre {
    background: #F5F5DC;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added shadow for more pop */
    color: #ff9800;
}

.formNavNext {
    background: #ff9800;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added shadow for more pop */
}

.formNavPre:hover, .formNavNext:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
	transform: translateY(-1px); /* ✅ Lift effect on hover */
}

.remove-container {
    margin-top: -10px; /* ✅ Adds spacing from input fields */
}

.remove-btn {
    background: #F57C00;
    font-size: 12px;
    font-weight: 400;
    padding: 5px 40px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added shadow for more pop */
	transition: all 0.5s ease;
}

.remove-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
	transform: translateY(-1px); /* ✅ Lift effect on hover */
}

#buttonContainer {
    margin-top: 20px; /* ✅ Adds spacing from input fields */
}

.add-btn {
    background: #004899;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.5s ease;
}

.add-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	transform: translateY(-1px); /* ✅ Lift effect on hover */
}


/* Mark select boxes that gets an error on validation: */
select.invalid, input.invalid, textarea.invalid {
	border: 1px solid red;
}

/* Make circles that indicate the steps of the form: */
.step-container{
	text-align: center;
}

.step {
	height: 15px;
	width: 15px;
	margin: 0 2px;
	border: none;
	border-radius: 50%;
	display: none;
	opacity: 0.5;
}


/* Review Section - 80% of Form Group */
.review-section {
	width: 90%;
    background: #FDFCF8; /* Warm off-white for a vintage feel */
    padding: 20px 15px;
    margin: 15px auto;
    border: 1px solid #E2DFDA; /* Soft border for a classic touch */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 238, 234, 0.3) 100%); /* Soft gradient for nostalgia */
}

/* Section Headers */
.review-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2F4858; /* Muted dark blue for a classic look */
    text-align: left;
    border-bottom: 2px solid #E2DFDA; /* Divider for structure */
    padding-bottom: 5px;
}

/* Paragraph Text */
.review-section p {
    font-size: 14px;
    margin: 6px 0;
    color: #555;
}

/* Label Text (e.g., Name, Phone) */
.review-section p strong {
    color: #2F4858; /* Dark blue for emphasis */
}

/* Key Details (e.g., Shipping Charge) */
.review-section p span {
    color: #4B3F35; /* Warm brown for nostalgic touch */
}

/* Price Section - Nostalgic + Modern Touch */
.price-section {
	width: 90%;
    background: #FDFCF8; /* Warm off-white for nostalgia */
    padding: 15px 20px;
    margin: 10px auto;
    border: 1px solid #E2DFDA;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 238, 234, 0.3) 100%);
}

.price-section p {
    font-size: 14px;
    margin: 5px 0;
    color: #4B3F35; /* Warm brown for a classic feel */
}

/* Highlighted Total */
.price-section p strong {
    color: #2F4858; /* Muted dark blue for emphasis */
}

.price-section p span {
    float: right;
}

/* Booking Code Section - Clean & Elegant */
.booking-code-section {
	width: 90%;
    background: #FDFCF8;
    padding: 15px 20px;
    margin: 15px auto;
	margin-bottom: 25px !important;
    border: 1px solid #E2DFDA;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center; /* Center align for emphasis */
}

.booking-code-section p {
    font-size: 14px;
    color: #2F4858;
    margin: 5px 0;
}

.booking-code-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

#copyBookingCodeIcon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    filter: brightness(0.8);
    transition: filter 0.2s ease;
}

#copyBookingCodeIcon:hover {
    filter: brightness(1);
}

/* Booking Code Styling */
#bookingCode {
    font-weight: bold;
    color: #4B3F35; /* Warm brown for a nostalgic touch */
    background-color: #FFF7E0; /* Subtle highlight */
    padding: 2px 5px;
    border-radius: 5px;
    font-family: 'Courier New', monospace; /* Classic code style */
}



.terms-container {
	width: 90%;
    margin: 15px auto;
    margin-bottom: 0 !important;
    padding: 20px 15px;
    padding-bottom: 0 !important;
}

.terms-heading {
    text-align:center;
	margin-bottom:10px;
	font-size: 20px;
	color: #333;
}

.terms-list {
    list-style-type: none;  /* Remove default numbers */
    counter-reset: list;    /* Initialize counter */
    margin-bottom: 20px;
    font-size: 14px;
    background-color: rgba(251, 250, 247, 0.5);
    padding: 10px;
    margin-bottom: -10px;
}

.terms-list li {
    counter-increment: list;  /* Increment counter for each <li> */
    position: relative;
    padding-left: 20px; /* Space for custom numbers */
    margin: 5px 0;;
}

.terms-list li::before {
    content: counter(list) ". "; /* Add numbers manually */
    font-weight: bold;
    position: absolute;
    left: 0;
}

.terms-list li span {
    font-weight: bold;
}

.more-terms {
    display: none;
}

.show-more-btn {
    display: block;
    margin: 10px auto 20px;
    padding: 5px 15px;
    background: #004899;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.5s ease;
    cursor: pointer;
}

.show-more-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	transform: translateY(-1px); /* ✅ Lift effect on hover */
}



/* popup.css */
.popup {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    max-height: 80vh; /* Set max height of the popup */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    width: 50%;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #004899;
}

/* .opay-payment-method {
    margin-top: 5px;
}

.opay-payment-buttons {
    margin-top: 35px;
} */

.payment-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.transfer-amount {
    font-size: 25px;
    color: #004899;
    padding: 10px 0;
}
  
.payment-details td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
    vertical-align: middle; /* This centers the content vertically */
}

.payment-details td:first-child {
    font-weight: bold;
    width: 40%;
    background-color: #f9f9f9;
    color: #2F4858; /* Dark blue for emphasis */
}

.payment-terms {
    margin: 15px auto;
    padding-top: 15px;
}

.pay-heading {
    text-align:center;
	margin-bottom:10px;
	font-size: 20px;
	color: #e60033;
}

.pay-list {
    list-style-type: disc; /* Ensures bullet points */
    margin-bottom: 10px;
    font-size: 14px;
    padding: 10px;
    text-align: left;
}

.pay-list li {
    position: relative;
    text-align: left;
    margin: 5px 0;
}

.pay-list li span {
    font-weight: bold;
    color: #e60033;
}

.line {
    border-bottom: 2px solid #E2DFDA; /* Divider for structure */
    margin-bottom: 25px;
}

.proof-btn {
    padding: 10px 20px;
    background: #004899;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    transition: all 0.5s ease;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: 5px;
}

.proof-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	transform: translateY(-1px); /* ✅ Lift effect on hover */
}






.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #28a745;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease-out;
}

.checkmark-circle::after {
    content: '✔';
    font-size: 50px;
    color: #28a745;
    font-weight: bold;
}

.checkmark-title {
    color: #28a745;
    padding: 10px 0;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}



.copy-cell {
    cursor: pointer;
    text-decoration: underline dotted;
}

.copy-notif {
    font-size: 13px;
}










/*------------------------- Use a media query to add a breakpoint at 800px: -------------------------*/
/* Responsive Design */

@media screen and (max-width: 982px) {
	.container {
        display: flex;
        flex-direction: column;
        overflow: auto;
    }
    .left-section, .right-section {
        width: 100%;
        overflow: visible;

    }
    .right-section {
        border-radius: 0 0 6% 6%;
        justify-content: center;
        padding: 0 0 15px 0;
        min-height: 230px;
    }
    .right-section::after {
        right: auto;
        left: 50%;
        bottom: -40px;
        top: auto;
        transform: translateX(-50%);
        width: 90%;
        height: 50px;
        background: white;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
    .right-section h2 {
        display: none;
    }
    .right-section .logo a img {
        width: 350px;
    }
    .right-section p {
        font-size: 12px;
    }
	#shipmentType, .carrier-card {
		width: 45vw;
	}
    .form-group h1 {
        font-size: 21px;
    }
    .formNavTab {
        padding-bottom: 15px;
    }
}

@media (max-width: 768px) {
	#shipmentType, .carrier-card {
		width: 70vw;
	}
	.select-container label, .input-container label, .textarea-container label {
		left: 5px;
		top: 50%;
	}
	/* Summary Section */
	.review-section {
		width: 100%;
	}
	.price-section {
		width: 100%;
	}
	.booking-code-section{
		width: 100%;
	}
    .terms-container {
        width: 100%;
    }
	
}


