
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
}

:root {
	--primary: #002554;
	--primary-light: #335176;
	--secondary: #B9975b;
	--light: #ffffff;
	--light-gray: #f8fafc;
	--border: #bfc8d4;
	--text: #002554;
	--text-light: #4d4d4F;
	--success: #11cc00;
	--warning: #b79d77;
	--error: #ef4444;
	--divide: rgba(170, 170, 170, 1);
}



body {
	background-color:  rgba(255, 255, 255, 0.7);  /* White at 70% opacity */
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
    flex-direction: column;
}

.calculator-container {
	width: 100%;
	max-width: 1100px;
	background: var(--light);
	border-radius: 0px;
	overflow: hidden;
	/* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1),
    0 -6px 12px -4px rgba(0, 0, 0, 0.1); */
	border: 1px solid var(--border);
}

.calculator-header {
	/* background: var(--primary); */
	padding: 13px 30px;
	text-align: left;
	position: relative;
	overflow: hidden;
	color: var(--primary);
}

.fa-calculator {
	margin-right: 2px;
}

/* .calculator-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
	background-size: cover;
} */

.calculator-header h1 {
	font-size: 28px;
	font-weight: 500;
	margin-bottom: 10px;
	position: relative;
	color: var(--primary);
}

.calculator-header p {
	font-size: 18px;
	opacity: 0.9;
	position: relative;
	color: var(--primary);
	display: flex;
	align-items: left;
	justify-content: flex-start;
	gap: 10px;
}

.info-icon {
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1.2rem;
}

.info-icon:hover {
	/* transform: scale(1.1); */
	color: var(--lines);
}

.calculator-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	padding: 28px;
}



.input-section {
	display: flex;
	flex-direction: column;
	gap: 25px;
	padding-top: 21px;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.input-group label {
	font-weight: 600;
	font-size: 16px;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.input-group  .label-headings {
	font-weight: 600;
	font-size: 16px;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* .input-group .radio-group .radio-option  .label-headings {
	font-weight: bold;
	font-size: 18px;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 8px;
} */

.input-group label i {
	color: var(--primary);
}

.styled-input, .styled-select {
	padding: 10px 36px 10px 16px; 
	background: #fff;
	border-style: solid ;
	border-color: var(--lines);
	border-width: 1px;
	border-radius: 5px;
	color: var(--primary);
	font-size: 16px;
	transition: all 0.3s ease;
	width: 100%;
    text-align: left;
    font-weight: 500;
}

.styled-input:focus, .styled-select:focus {
	outline: none;
	/* border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); */
}

.styled-input:focus-visible {
    outline: none;
}

.styled-select {
	appearance: none;
	background-image: url('images/down-arrow-black.svg');
	background-repeat: no-repeat;
	background-size: 18px;
	background-position: right 11px center;
	padding-right: 36px;
}

.date-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	flex-wrap: wrap;
}

.radio-group {
	display: flex;
	gap: 0px;
	margin-top: 5px;
    flex-wrap: wrap;
}

.radio-option {
	flex: 1;
}

.radio-option input {
	display: none;
}

.radio-option label {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-width: 1px;
	border-style: solid;
	border-color: var(--tabs-background);
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	font-weight: 500;
	color: var(--primary);
	background-color: var(--tabs-background);
}

.radio-option input:checked + label {
	/* background: var(--tertiary); */
	color: var(--white);
	border-width: 0px;
	background-color: var(--primary);
	border-radius: 5px;
	text-align: center;
}

.radio-option input:hover + label {
	background-color: var(--white);
	border: 1px solid var(--tabs-background);
	color: var(--primary);
}

.calculate-btn {
	/* background: var(--tertiary); */
	color: var(--primary);
	border: none;
	padding: 10px 2px 10px 0px;
	border-radius: 0px;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	/* transition: all 0.3s ease; */
	display: inline-block;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
	border-width: 0 0 1px 0;
	border-style: solid;
	border-color: var(--secondary);
	/* box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2); */
	

}

/* .calculate-btn::before {
    position: absolute;
    content: '';
    background-image: url('right-arrow-white.svg');
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    right: 11px;
    top: 10px;
} */

/* .calculate-btn:hover {
    background-color: rgb(174 174 174 / 30%);
    backdrop-filter: blur(12px);
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    transition: all .8s ease;
	color: transparent;
} */

/* .calculate-btn:hover::before {
    background-image: url('right-arrow-black.svg');
    transition: all .8s ease;
    right: 2px;
    width: 25px;
    height: 25px;
} */

/* .calculate-btn:hover::after {
    transform: translate(0.5%);
    top: 23.5%;
    transition: all .8s ease;
}  */

/* .calculate-btn::after {
    content: attr(data-hover);
    position: absolute;
    left: 15px;
    right: 60px;
    text-align: left;
    color: #000;
    transform: translateY(140%);
    transition: transform .8s ease;
    white-space: nowrap;
    font-weight: 100;
} */


/* .calculate-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 25px rgba(79, 70, 229, 0.3);
}

.calculate-btn:active {
	transform: translateY(0);
} */

.results-section {
	background: var(--table-background);
	border-radius: 0px;
	padding: 20px 30px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	border: 1px solid var(--border);
}

.results-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.results-header h2 {
	font-size: 20px;
	font-weight: 500;
	color: var(--primary);
}

.results-header i {
	color: var(--primary);
}

.result-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 15px 0;
	border-bottom: 1px solid var(--lines);
}

.result-item:last-child {
	border-bottom: none;
}

.result-label {
	color: var(--primary);
	font-weight: 400;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.label-main {
	display: inline;
	position: relative;
}

.label-main sup {
	position: relative;
	top: -2px;
	font-size: 10px;
	vertical-align: super;
}

.price-per-share {
	font-size: 16px;
	color: var(--text);
	font-weight: 600;
}

.result-value {
	font-weight: 500;
	font-size: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.total-amount {
	font-size: 16px;
	color: var(--text);
}

.return-positive {
	color: var(--primary);
}

.return-high {
	color: var(--primary);
}

.return-negative {
	color: var(--primary);
}

.disclaimer {
	font-size: 12px;
	color: var(--primary);
	text-align: left;
	padding-top: 5px;
}

.disclaimer-two {
	text-indent: -10px;
	padding-left: 10px;
	font-size: 12px;
	color: var(--primary);
	text-align: left;
}

.pulse {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { opacity: 0.6; }
	50% { opacity: 1; }
	100% { opacity: 0.6; }
}

/* Popup Styles */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

.popup-content {
	background: var(--hover-blue);
	opacity: 0.8;
	color: var(--white);
	border-radius: 0px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	/* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); */
	transform: translateY(20px);
	transition: all 0.3s ease;
	position: relative;
}

.popup-overlay.active .popup-content {
	transform: translateY(0);
}

.popup-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 16px;
	cursor: pointer;
	color: var(--white);
	transition: color 0.3s ease;
}

.popup-close:hover {
	color: var(--text);
}

.popup-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.popup-header i {
	color: var(--white);
	font-size: 1.5rem;
}

.popup-header h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--white);
}

.popup-body {
	color: var(--white);
	line-height: 150%;
}

.popup-steps {
	margin: 20px 0;
	padding-left: 20px;
}

.popup-steps li {
	margin-bottom: 10px;
	color: var(--white);
}

.popup-steps li strong {
	color: var(--white);
}

/* === Calendar popup container === */
.flatpickr-calendar {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  /* box-shadow: 0 4px 15px rgba(0,0,0,0.15); */
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.flatpickr-day {
	color: var(--primary) !important;
}

span.flatpickr-weekday {
	color: var(--primary) !important;
}

/* === Month header === */
.flatpickr-months {
  background: linear-gradient(90deg, var(--primary), var(--primary));
  color: white;
  padding: 6px 0;
  font-weight: 500;
  height: 60px;
}

.flatpickr-months .flatpickr-month
{
	height: 50px !important;
}

.flatpickr-current-month
{
	height: 60px !important;
}

.flatpickr-monthDropdown-months
{
	background:#ffffff !important;
	font-size: 14px !important;
	padding: 10px 0px !important;
	border-radius: 0px !important;
	margin-right: 12px !important;
}

.flatpickr-current-month input.cur-year {
  background:#ffffff !important;
  font-size: 14px !important;
	padding: 10px 10px !important;
	border-radius: 0px !important;
}

.flatpickr-next-month, .flatpickr-prev-month
{
	margin-top:10px !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: white;
}

/* === Day grid === */
.flatpickr-days {
  background-color: #fff;
  border-radius: 0 0 12px 12px;
}

/* Individual day cell */
.flatpickr-day {
  border-radius: 6px;
  color: var(--primary);
  font-size: 13px;
  transition: all 0.2s ease;
}

/* Hover effect */
.flatpickr-day:hover {
  background-color: #e8f3ff;
}

/* Selected day */
.flatpickr-day.selected {
  background-color: var(--primary) !important;
  color: #fff !important;
}

/* TodayÃ¢â‚¬â„¢s outline */
.flatpickr-day.today {
  border: 0px solid #106cb5;
}

/* Disabled or weekend */
.flatpickr-day.disabled,
.flatpickr-day.notAllowed {
  color: #aaa !important;
  background: #f9f9f9 !important;
}

/* Weekends (if not disabled) */
.flatpickr-day.weekend:not(.disabled) {
  color: #888;
}


.card-footer {
    display: flex;
    text-align: right;
    /* margin-top: 2rem; */
    font-size: 12px; /* 12px */
    color: var(--color-text-subtle);
    display: flex;
    align-self: flex-end;
    justify-content: flex-end;
    margin-right: 40px;
    padding-bottom: 20px;
}

.poweredby img {
    height: 10px;
}

@media (max-width: 768px) {
	.calculator-body {
		grid-template-columns: 1fr;
	}

	.calculate-btn:hover::after {
		transform: translate(0%);
		top: 23.5%;
		transition: all .8s ease;
	} 
	
	.calculate-btn::after {
		content: attr(data-hover);
		position: absolute;
		left: 15px;
		right: 60px;
		text-align: left;
		color: #000;
		transform: translateY(140%);
		transition: transform .8s ease;
		white-space: nowrap;
		font-weight: 100;
	}
}