/* All fields should have empty placeholder on input element */

body { 
    background-color: #ffffff;
    font-family: "Source Sans 3", sans-serif;
    color: #01271a;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
    
/* Form */
.form {
    padding-top: 10px;
}
.form-field {
    position: relative;
    width: 100%;
    margin: 0;
    clear: both;
}
    
.form-col-1, .form-col-2 {
    width: 48%;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
}
.form-col-1 {
    float: left;
    clear: left;
}
.form-col-2 {
    float: right;
    clear: right;
}
    
/* Fields */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], .form-field.pd-select select {
    height: 34px;
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid #01271a;
    color: #01271a;
    font-size: 20px;
    padding: 5px;
    border-radius: 0;
    width: calc(100% - 10px);
    margin-bottom: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
}
input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
}
    
/* Focus */
.form-field.pd-text:has(input[type="text"]:focus) label,
.form-field.pd-text:has(input[type="text"]:not(:placeholder-shown)) label {
    top: -12px;
    left: 5px;
    font-size: 14px;
    opacity: 0.8;
}
.form-field:has(select:focus) label,
.form-field:has(option:not(:first-child):checked) label {
    top: -14px;
    left: 5px;
    font-size: 14px;
    opacity: 0.8;
}
    
/* Submit */
input[type="submit"]{
    background-color: #fe6d12;
    color: #01271a;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
    padding: 1.2em;
    border-radius: 10px;
    display: inline-block;
    border: #fe6d12 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
}
input[type="submit"]:hover {
    background-color: transparent;
    color: #fe6d12;
}
    
/* Text */
.form-field.pd-text label,
.form-field.pd-select label {
    position: absolute;
    top: 11px;
    left: 5px;
    font-size: 20px;
    color: #01271a;
    transition: all 0.3s ease;
    z-index: -1;
}
    
/* Select */
.form-field.pd-select select {
    background-image: url("data:image/svg+xml,%3Csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3141 0.686023L6.65723 6.34287L1.00038 0.686023' stroke='%2301271a'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    width: 100%;
    margin-bottom: 30px;
    height: 40px;
}
.form-field.pd-select label {
    top: 0;
}
    
/* Textarea */
.pd-textarea {
    display: flex;
    column-gap: 15px;
}
.pd-textarea textarea{
    width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border: 0;
    border: 2px #01271a solid;
    color: #01271a;
    font-size: 20px;
    padding: 10px;
    font-family: "Source Sans 3 Variable", sans-serif;
}
    
/* Radio/Checkbox */
.form-field.pd-radio,
.form-field.pd-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    column-gap: 5px;
    flex-wrap: wrap;
}
    
.form-field.pd-radio input[type="radio"],
.form-field.pd-checkbox input[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #01271a;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}
.form-field.pd-checkbox input[type="checkbox"] {
    border-radius: 0;
}
.form-field.pd-radio input[type="radio"]:checked,
.form-field.pd-checkbox input[type="checkbox"]:checked {
    background: #fe6d12;
    box-shadow: 0 0 0 2px inset white;
}
.form-field.pd-radio span,
.form-field.pd-checkbox span {
    display: flex;
    column-gap: 5px;
    flex-wrap: wrap;
}
.form-field.pd-radio span span,
.form-field.pd-checkbox span span {
    margin-bottom: 5px;
    flex-wrap: nowrap;
}
.form-field.pd-radio input[type="radio"] + label,
.form-field.pd-checkbox input[type="checkbox"] + label {
    margin-right: 20px;
    margin-left: 5px;
    line-height: normal;
}
.form-field.pd-radio label,
.form-field.pd-checkbox label {
    margin-right: 10px;
    cursor: pointer;
}
    
/* Date */
.form-field.pd-date input {
    padding-left: 110px;
    width: calc(100% - 115px);
}
    
.form-field.pd-date label {
    position: absolute;
    top: 8px;
    left: 5px;
    font-size: 20px;
    color: #01271a;
    transition: all 0.3s ease;
    z-index: -1;
}
.form-field.pd-date input::placeholder {
    color: #01271a;
    opacity: 0.5;
}
.ui-datepicker {
    background-color: #ffffff;
}
.ui-datepicker-calendar{
    padding: 0 10px 10px;
}
.ui-datepicker-calendar a,
.ui-datepicker-calendar span,
.ui-corner-all{
    color: #003e29;
}
.ui-datepicker-header {
    padding: 10px 10px 0;
}
.ui-datepicker .ui-datepicker-title {
    display: flex;
    column-gap: 20px;
    margin: 10px 0;
}
.ui-datepicker .ui-datepicker-title select {
    width: 100%;
    color: #003e29;
    margin: 0;
    font-size: 18px;
}
.ui-datepicker-next, .ui-datepicker-prev {
    font-weight: 600;
    cursor: pointer;
}
.ui-datepicker-next {
    float: right;
}
    
/* Error handling */
.errors, .inner-error {
    color: #c64d4d;
    font-size: 14px;
    margin-bottom: 20px;
}
.error input {
    border-color: #c64d4d;
    margin-bottom: 5px;
}
.inner-error {
    display: block;
}
    
/* Media Queries */
@media(max-width: 500px){
    .form-col-1, .form-col-2 {
        width: 100%;
        float: none;
    }
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    input[type="number"], 
    input[type="date"], 
    .form-field.pd-select select,
    .form-field.pd-select label, 
    .form-field.pd-text label,
    .form-field.pd-radio label, 
    .form-field.pd-checkbox label,
    .form-field.pd-date label,
    .field-label {
        font-size: 16px;
    }
    .form-field.pd-radio .field-label, 
    .form-field.pd-checkbox .field-label {
        margin-bottom: 10px;
    }
    .form-field.pd-date input {
        padding-left: 90px;
    }
    .form-field.pd-date label {
        top: 11px;
    }
    .errors, .error {
        font-size: 14px;
    }
}

.form-field.email .description:has(a) {
	position: relative;
	margin-bottom: 1.6em;
	display: block;
}

.form-field.email .description a {
	position: absolute;
	left: 0;
	top: calc(100% - 0.3em);
	font-size: 0.8em;
    color: #fe6d12;
}

.form-field.email .description::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #fff;
	margin-left: -6px;
}
