.content {
    padding: 40px 0;
}

main p {
    padding-bottom: 0;
    max-width: none;
    margin-right: 5px;
    width: 93.3%;
}

.calc-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 25px;
    justify-content: space-between;
    position: relative;
}

.calc-cards > .card {
    display: grid;
    grid-template-columns: 46% 46%;
    grid-template-rows: 100px 275px;
    gap: 4%;
    justify-content: center;
    text-align: center;
    height: 375px;
    background-color: rgba(0, 93, 212, 0.05);
    border: rgba(255, 255, 255, 0.7) 3px solid;
    width: 100%;
    border-radius: 10px;
    padding: 20px;
}

.card-grid-item.wide {
    grid-column: span 2;
}

.card-grid-item.wide h3 {
    color: #00A0D2;
    margin: 50px 0 50px 0;
}

.card-grid-item.right {
    grid-column: 2;
}
.card-grid-item.left {
    grid-column: 1;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    right: 500px;
}

.card i {
    font-size: 4rem;
    color: #00A0D2
}

.card .left h6 {
    text-align: left;
    font-size: 1.2rem;
}

.card .right h6 {
    text-align: center;
    font-size: 1.1rem;
    margin: 7px 0 0 0;
    padding: 0;
}

form input {
    border-radius: 25px;
    margin-bottom: 5px;
    background-color: #fff;
    padding: 10px;

}

form input::placeholder {
    padding: 10px 5px;
    font-size: 1rem;
    color: darkgrey;
}

form input:focus {
    outline: none;
    border: none;
}

input[type=text] {
    padding-left: 25px;
}
input[type=submit] {
    background-color: #00A0D2;
    border-radius: 25px;
    width: 49%;
    margin: 5px 0;
    padding: 13px;
    transition: all 300ms ease-out;
}

input[type=submit]:hover {
    transition: all 300ms ease-in;
    transform: scale(1.02);
}
.feebtns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

button.calcbtn, button.csvbtn {
    background-color: #0080d2;
    border-radius: 25px;
    width: 49%;
    margin: 5px 0;
    padding: 13px;
    color: #fff;
    transition: all 300ms ease-out;
}

.csvbtn:hover, .calcbtn:hover {
    transition: all 300ms ease-in;
    transform: scale(1.02);
    background-color: #00A0D2;
}

/* for error handling on form */
.input-control {
    position: relative;
}

.input-control.success input[type=text], .input-control.success textarea {
    border: 2px solid #09c372;
}
.input-control.error input[type=text], .input-control.error textarea {
    border: 2px solid #ff3860;
}
.input-control .error {
    color: #db7d90;
    font-size: .65rem;
    font-weight: normal;
    position: absolute;
    bottom: 15px;
    right: 15px;
}
.input-control .error[last-child] {
    bottom: 5px;
}

/* Drop Down Styles */

h1 {
	margin: 100px 0 50px 30px;
	text-align: center;
	color: #fff;
    font-family: inherit;
}

.dropdown-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
	margin: 0 auto;
    width: 100%;
}

.dropdown {
    margin: 25px 0 0 0;
	position: relative;
	transition: 0.3s ease;
    background-color: rgba(0, 93, 212, 0.05);
    border: rgba(255, 255, 255, 0.7) 3px solid;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
}

.dropdown.active {
    background-color: rgba(0, 93, 212, 0.05);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.5);
}

.dropdown.active::before,
.dropdown.active::after {
	font-size: 7rem;
	color: #0080d2;
	opacity: 0.15;
	position: absolute;
	top: 35px;
	left: 20px;
	z-index: 0;
}

.dropdown.active::before {
	color: #3498db;
	top: -10px;
	left:-30px;
	transform: rotateY(180deg);
}

.dropdown i {
    padding-top: 30px;
}

.dropdown button,.dropdown button:hover {
    border-radius: 0 .75rem .75rem 0;
}

.dropdown-title {
	margin: 0 35px 0 0;
	font-size: 1.4rem;
}

.dropdown-text {
	display: none;
	margin: 0;
}

p.dropdown-text {
    font-size: 1rem;
    font-family: inherit;
    background-color: transparent;
    padding: .5rem 0;
    width: 93%;
}

.dropdown.active .dropdown-text {
	display: block;
}

.dropdown-toggle {
	background-color: #00A0D2;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0;
	position: absolute;
	top: 0;
	right: -16px;
	height: 100%;
	width: 80px;
	color: #fff;
}

.dropdown button {
    padding: 0;
}

.dropdown-toggle .bi-x-lg {
	display: none;
}

.dropdown.active .dropdown-toggle .bi-x-lg {
	display: block;
	margin: 0 auto;
	color: #fff;
}

.dropdown.active .dropdown-toggle .bi-chevron-down {
	display: none;
}

.dropdown.active .dropdown-toggle {
	background-color: #0080d2;
	color:#fff;
}

button, .button, input[type=button], input[type=reset], input[type=submit], input::file-selector-button {
    background-color: #0080d2;
}

:is(button, .button, input[type=button], input[type=reset], input[type=submit]):where(:active, :focus, :hover) {
    background-color: #00A0D2;
}

/* Table styles */
br {
    display: none;
}

hr {
    display: none;
}

#fee_calcd_for {
    color: #fff;
    background-color: transparent;
    box-shadow: none;
    display: block;
    width: 100%;
    position: static;
}

#fee_calcd_for p {
    line-height: 1.1rem;
    color: #00A0D2;
    font-size: 1.1rem;
    text-align: center;
    padding: .5rem 0;
    font-weight: bold;
    border: 1px solid #00A0D2;
    margin-bottom: 10px;
}

.dropdown > p:nth-child(4), .dropdown > p:nth-child(10)  {
    text-align: center;
    background-color: #00A0D2;
    color: #fff;
    padding: .35rem 0;
}

.fee_table {
    margin: 0;
    text-align: center;
    position: static;
    width: 93.3%;
    padding-bottom: 20px;
    border-radius: 0;
}

.fee_table thead {
    position: sticky;
    top: -2px;
    background-color: darkgrey;
}

.fee_table th {
    color: #fff;
    width: 246.1px;
}

.code_category {
    margin-top: 5px;
}

td.code_category {
    text-align: left;
    border-bottom: 2px solid #00A0D2;
    color: #00A0D2;
    padding: 10px 0 0 0;
    margin-top: 5px;
}

.chirofeeserror {
    color: #db7d90;
    font-size: 1rem;
    width: 90%;
}

@media screen and (max-width: 1100px) {
    .icon {
        right: 325px;
    }

    .calc-cards > .card {
        height: 375px;
    }

    .card .left h6 {
        font-size: .92rem;
    }

    .card .right h6 {
        font-size: .92rem;

    }

    .dropdown-toggle {
        width: 45px;
    }

    main p {
        width: 92%;
    }

    .fee_table th {
        width: 166.3px;
    }

    p.dropdown-text {
        width: 90%;
    }
    footer br {
        display: block;
    }

}

@media screen and (max-width: 768px) {
    .content {
        padding: 80px 0 40px 0;
    }

    main p {
        width: 85%;
    }

    .calc-cards > .card {
        height: 550px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .card-grid-item.wide h3 {
        margin: 40px 0 5px 0;
        padding: 0;
    }

    .icon {
        right: 165px;
    }

    .dropdown {
        padding: 15px;
    }

    .dropdown-title {
        margin: 0 65px 0 0;
        font-size: 1rem;
        padding-right: 4px;
    }

    p.dropdown-text {
        width: 80%;
        font-size: .9rem;
    }

    .dropdown > p:nth-child(4), .dropdown > p:nth-child(10)  {
        padding: .35rem 1.85rem;
        font-size: .9rem;
        line-height: 1.2;
    }

    .fee_table th {
        width: 83px;
        line-height: 1.1;
    }

    #fee_calcd_for {
        max-width: 100%;
    }

    #fee_calcd_for p {
        font-size: .9rem;
        padding: .5rem 1.5rem;
        line-height: 1.2;
    }

    .fee_table p {
       margin: 10px 0;
    }

    .fee_table th, .fee_table td {
        font-size: .85rem;
    }

    .code_category {
        line-height: 1.2;
    }
}