/* Copyright Global Network Connections LLC ver.Desktop */
#gf-form {
    display: block;
}

/* Scope box-sizing to form elements only */
.gf-body,
.gf-body * {
    box-sizing: border-box;
}

.gf-body {
    margin: 0;
    font-family: -apple-system, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 0.75;
    color: #b2b2b2;
    text-align: left;
    background-color: transparent;
    padding: 2px 2px 0;
    border: 0 solid #ebebf7;
    border-radius: 0.25rem;
    max-width: inherit;
}

.gf-form-control::placeholder {
    color: #808080;
    font-style: normal;
}

.gf-form-group {
    margin: 1.5rem 0; /* Increased or decrease for space above labels */
}

.gf-input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.gf-form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #878383;
    background-color: #fff;
    background-clip: padding-box;
    border: 0 solid #ced4da;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.gf-form-control:focus {
    border: 1px solid #313131;
}

select.gf-form-control[size],
select.gf-form-control[multiple] {
    height: auto;
}

textarea.gf-form-control {
    font-family: -apple-system, Arial, sans-serif;
    height: 75px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
}

select.gf-form-control {
    height: 38px;
    padding: 8px 12px;
    border: 0 solid #ced4da;
}

.gf-label {
    display: inline-block;
    margin-bottom: 0.25rem; /* Reverted to original value */
    color: #68a889;
}

.gf-btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .gf-btn {
        transition: none;
    }
}

.gf-btn:hover {
    color: #212529;
    text-decoration: none;
}

.gf-btn:focus,
.gf-btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.gf-btn-primary {
    color: #fff;
    background-color: #68a889;
    border-color: #68a889;
}

.gf-btn-primary:hover {
    color: #fff;
    background-color: #ff8200;
    border-color: #ff8200;
}

.gf-btn-primary:focus,
.gf-btn-primary.focus {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.gf-btn-lg,
.gf-btn-group-lg > .gf-btn {
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: 0;
}

.gf-btn-block {
    display: block;
    width: 100%;
}

.gf-btn-block + .gf-btn-block {
    margin-top: 0.5rem;
}

input[type="submit"].gf-btn-block,
input[type="reset"].gf-btn-block,
input[type="button"].gf-btn-block {
    width: 100%;
}

.gf-form-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0.75rem 0; /* Increased from 0.5rem to 0.75rem to match .gf-form-group */
    gap: 0 1rem;
}

.gf-form-row .gf-form-group {
    margin: 0;
}

.gf-column {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.gf-column:last-child {
    margin: 0;
}

.gf-column .gf-form-control {
    width: 100%;
}

@media (max-width: 768px) {
    .gf-form-row {
        flex-direction: column;
        gap: 0.75rem; /* Increased from 0.5rem to 0.75rem for mobile */
    }
    .gf-column {
        margin: 0;
    }
}