/* GoEscrow Milestone Escrow v0.1.3
   Self-contained styling based on the working GoEscrow transaction form.
*/

.goe-web-form-wrap,
.goe-transaction-form-wrap,
.goe-me-wrap {
    max-width: 1120px;
    margin: 0 auto 60px;
    padding: 0 18px;
    box-sizing: border-box;
    font-family: inherit;
    color: #0d223f;
}

.goe-web-form-wrap *,
.goe-transaction-form-wrap *,
.goe-me-wrap * {
    box-sizing: border-box;
}

.goe-form-shell {
    background: #f2f2f2;
    padding: 28px 38px 42px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.goe-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 26px;
}

.goe-form-kicker {
    font-size: 31px;
    line-height: 1.05;
    font-weight: 800;
    color: #0d223f;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.goe-form-header h3 {
    margin: 0 0 24px;
    font-size: 23px;
    line-height: 1.25;
    color: #0d223f;
    font-weight: 700;
}

.goe-form-header p {
    margin: 0;
    max-width: 760px;
    color: #394b59;
    font-size: 14px;
    line-height: 1.55;
}

.goe-form-meta {
    min-width: 230px;
    padding-top: 6px;
    color: #0d223f;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.goe-form-meta span {
    font-weight: 800;
}

.goe-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #ffffff;
    border-left: 4px solid #0d223f;
    color: #394b59;
    font-size: 14px;
    line-height: 1.45;
}

.goe-alert--error {
    border-left-color: #d93025;
}

.goe-alert--success {
    border-left-color: #188038;
}

.goe-alert a {
    color: #0d223f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.goe-section-bar {
    position: relative;
    height: 34px;
    margin: 28px 0 18px;
    background: #f58220;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.goe-section-bar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 320px;
    background: #0d223f;
    clip-path: polygon(0 0, 91% 0, 100% 100%, 0 100%);
}

.goe-section-bar span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    padding-left: 16px;
}

.goe-note-copy,
.goe-inline-help,
.goe-authority-copy {
    margin: 0 0 16px;
    color: #394b59;
    font-size: 14px;
    line-height: 1.55;
}

.goe-inline-help {
    margin-top: -6px;
}

.goe-inline-help a,
.goe-authority-copy a {
    color: #0d223f;
    font-weight: 700;
    text-decoration: none;
}

.goe-inline-help a:hover,
.goe-authority-copy a:hover {
    color: #f58220;
    text-decoration: underline;
}

.goe-note-head {
    display: inline-block;
    margin: 10px 0 12px;
    padding: 8px 14px;
    background: #0d223f;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .02em;
}

.goe-grid {
    display: grid;
    gap: 18px 20px;
    margin-bottom: 18px;
}

.goe-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goe-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goe-grid--3-6-3 {
    grid-template-columns: 1fr 2fr 1fr;
}

.goe-grid--suburb {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
}

.goe-grid--bank-mid {
    grid-template-columns: 1fr 1.5fr 1.5fr;
}

.goe-field {
    min-width: 0;
}

.goe-field label,
.goe-form label {
    display: block;
    margin: 0;
    color: #0d223f;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.goe-field input,
.goe-field select,
.goe-field textarea,
.goe-form input[type="text"],
.goe-form input[type="email"],
.goe-form input[type="tel"],
.goe-form input[type="date"],
.goe-form input[type="month"],
.goe-form input[type="number"],
.goe-form input[type="url"],
.goe-form select,
.goe-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0 !important;
    padding: 10px 12px;
    height: 43px;
    border: 1px solid #6d8a8a;
    border-radius: 0;
    background: #ffffff;
    color: #1f2933;
    box-shadow: none;
    outline: none;
    font-size: 15px;
    line-height: 1.2;
    font-family: inherit;
}

.goe-field textarea,
.goe-form textarea {
    min-height: 88px;
    height: auto;
    resize: vertical;
}

.goe-field input:focus,
.goe-field select:focus,
.goe-field textarea:focus,
.goe-form input:focus,
.goe-form select:focus,
.goe-form textarea:focus {
    border-color: #f58220;
    box-shadow: 0 0 0 1px #f58220;
}

.goe-copy-box,
.goe-wide-copy {
    background: #ffffff;
    border-left: 4px solid #f58220;
    padding: 16px 18px;
    color: #394b59;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px;
}

.goe-copy-box p,
.goe-wide-copy p {
    margin: 0 0 10px;
}

.goe-copy-box p:last-child,
.goe-wide-copy p:last-child {
    margin-bottom: 0;
}

.goe-copy-box strong,
.goe-wide-copy strong {
    color: #0d223f;
    font-weight: 800;
}

.goe-mobile-id-box,
.goe-escrow-type-box {
    background: #ffffff;
    border: 1px solid #d4dbe2;
    padding: 16px 18px;
    margin: 0 0 18px;
}

.goe-mobile-id-box p,
.goe-escrow-type-box p {
    margin: 0 0 12px;
    color: #0d223f;
    font-weight: 800;
    font-size: 14px;
}

.goe-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    margin: 0 0 18px;
}

.goe-choice {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #394b59;
    font-size: 14px !important;
    line-height: 1.35;
    font-weight: 600 !important;
}

.goe-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goe-choice__box {
    width: 18px;
    height: 18px;
    border: 2px solid #0d223f;
    background: #ffffff;
    display: inline-block;
    flex: 0 0 auto;
}

.goe-choice input[type="radio"] + .goe-choice__box {
    border-radius: 50%;
}

.goe-choice input:checked + .goe-choice__box {
    background: #f58220;
    border-color: #f58220;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.goe-choice__label {
    color: #394b59;
}

.goe-authority-checks {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.goe-id-block,
.goe-me-condition-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #d4dbe2;
    padding: 18px;
    margin: 0 0 18px;
}

.goe-id-block h4,
.goe-me-condition-card h4 {
    margin: 0 34px 14px 0;
    color: #0d223f;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.goe-me-remove-condition {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    background: #0d223f;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.goe-me-add-condition {
    margin: 0 0 18px;
}

.goe-submit-row,
.goe-form-actions {
    margin-top: 22px;
}

.goe-submit-button,
.goe-submit-btn,
.goe-me-add-condition {
    display: inline-block;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: #f58220 !important;
    color: #ffffff !important;
    padding: 13px 24px;
    min-height: 43px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.goe-submit-button:hover,
.goe-submit-button:focus,
.goe-submit-btn:hover,
.goe-submit-btn:focus,
.goe-me-add-condition:hover,
.goe-me-add-condition:focus {
    background: #e97516 !important;
    color: #ffffff !important;
}

.goe-me-admin pre {
    white-space: pre-wrap;
    max-width: 100%;
    overflow: auto;
}

.goe-me-admin textarea {
    width: 100%;
}

/* Make sure theme styles do not flatten the form */
.goe-me-wrap input,
.goe-me-wrap textarea,
.goe-me-wrap select,
.goe-me-wrap button {
    font-family: inherit;
}

.goe-me-wrap input[type="checkbox"],
.goe-me-wrap input[type="radio"] {
    width: auto;
    height: auto;
}

@media (max-width: 900px) {
    .goe-form-header {
        display: block;
    }

    .goe-form-meta {
        margin-top: 18px;
        min-width: 0;
    }

    .goe-grid--2,
    .goe-grid--3,
    .goe-grid--3-6-3,
    .goe-grid--suburb,
    .goe-grid--bank-mid {
        grid-template-columns: 1fr;
    }

    .goe-section-bar::before {
        width: 260px;
    }
}

@media (max-width: 560px) {
    .goe-web-form-wrap,
    .goe-transaction-form-wrap,
    .goe-me-wrap {
        padding: 0 12px;
    }

    .goe-form-shell {
        padding: 22px 18px 34px;
    }

    .goe-form-kicker {
        font-size: 25px;
    }

    .goe-form-header h3 {
        font-size: 20px;
    }

    .goe-section-bar::before {
        width: 230px;
    }
}
