*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #fff;
    font-family: MaiandraGD, Arial, sans-serif;
    color: #222;
}

.hi-dover-page {
    width: 100%;
    padding:5px;
    background: #fff;
}

.hi-dover-form-card {
    width: calc(100% - 10px);
    max-width: none;
    background: transparent;
    box-shadow: none;
}

.hi-dover-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 27px;
    font-weight: 700;
}

.hi-dover-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hi-dover-form-grid {
    display: grid;
    gap: 10px;
}

.hi-dover-form-grid-two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hi-dover-form-grid-single {
    grid-template-columns: 1fr;
}

.hi-dover-form-group {
    position: relative;
}

.hi-dover-form-group input,
.hi-dover-form-group select,
.hi-dover-form-group textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #cfcfcf;
    background: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    font-family: inherit;
    color: #222;
    box-sizing: border-box;
}

.hi-dover-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.hi-dover-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #222 50%), linear-gradient(135deg, #222 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.hi-dover-form-group input:focus,
.hi-dover-form-group select:focus,
.hi-dover-form-group textarea:focus {
    outline: none;
    border-color: #2f7d32;
    box-shadow: 0 0 0 2px rgba(47, 125, 50, 0.12);
}

.hi-dover-form-group input.error,
.hi-dover-form-group select.error,
.hi-dover-form-group textarea.error {
    border-color: #c62828;
}

.error-message {
    display: none;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
}

.error-message.show {
    display: block;
}

.hi-dover-submit-button {
    min-height: 50px;
    border: 0;
    background: #148f2a;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.hi-dover-submit-button:hover {
    background: #0f7722;
}

.hi-dover-page-success {
    text-align: center;
}

.hi-dover-success-card {
    max-width: none;
    padding: 40px 28px;
}

.hi-dover-success-message {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .hi-dover-page {
        padding: 12px;
    }

    .hi-dover-title {
        font-size: 24px;
    }

    .hi-dover-success-card {
        padding: 28px 18px;
    }
}
