﻿input::placeholder, textarea::placeholder {
    font-style: italic;
}

h3 {
    color: rgb(22, 58, 169) !important;
    font-size: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    overflow-wrap: break-word;
}

.label-with-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.form-field label {
    font-size: 1rem;
    color: #2b2b2b;
}

.form-field > label {
    display: grid;
    gap: 0.5rem;
    width: 100%;
}

.form-field input:not([type="radio"]):not([type="checkbox"]),
.form-field select,
.form-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #E3E6EB;
    border-radius: 0.4rem;
    background: #fff;
    font-size: 1rem;
}

.form-field input:not([type="radio"]):not([type="checkbox"]),
.form-field select {
    min-height: 2.75rem;
    height: auto;
}

.form-field input.date-input {
    width: min(12rem, 100%) !important;
    max-width: 12rem;
}

.req:after {
    content: "*";
}

.claim-form {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.claim-form form {
    width: 100%;
}

.claim-form h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0D2B88;
    margin-bottom: 0.6rem;
    overflow-wrap: break-word;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0 0.5rem;
}

.section-title h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0D2B88;
    margin: 0;
    overflow-wrap: break-word;
}

.section-title svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
}

.claim-form h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 0.35rem;
    overflow-wrap: break-word;
}

.hint {
    font-size: 0.9rem;
    color: #6b6f76;
    margin-top: 0.25rem;
}

.info-box {
    margin: 0.25rem 0;
}

.info-box p {
    margin: 0;
}

.info-box ul {
    margin: 0.25rem 0 0;
    padding-left: 1.2rem;
}

.upload-button {
    width: 100%;
    border: 1px solid #a9b3be;
    border-bottom: 2px solid #051e66;
    background: #f1f2f4;
    padding: 0.6rem 0.8rem;
    border-radius: 0.35rem;
    margin: 0.75rem 0;
    min-height: 2.75rem;
}

.claim-form .btn-primary {
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    min-height: 3.5rem;
    height: auto;
    padding: 0.85rem 1.25rem;
    width: 100%;
    max-width: 22rem;
    box-sizing: border-box;
    margin: 1.5rem auto 2rem;
    line-height: 1.2;
    white-space: normal;
}

.add-more {
    margin: 0.4rem 0 0.6rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.4rem;
    border: 1px solid #c9ced6;
    background: #6b6f76;
    color: #fff;
    font-size: 0.9rem;
}

.inline-panel {
    border: 1px solid #E3E6EB;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.4rem 0 0.6rem;
    background: #fff;
    position: relative;
}

.inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.inline-grid > * {
    min-width: 0;
}

.attachment-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.attachment-grid {
    min-width: 0;
}

.attachment-grid p {
    min-width: 0;
    margin: 0;
}

.attachment-file-name {
    overflow-wrap: anywhere;
}

.attachment-file-size {
    overflow-wrap: anywhere;
}

.claim-form form > .form-check,
.claim-form .checkbox-group > .form-check {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding-left: 0;
    margin: 0.75rem 0;
}

.claim-form form > .form-check .form-check-input,
.claim-form .checkbox-group > .form-check .form-check-input {
    float: none;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.2rem 0 0;
}

.claim-form form > .form-check .form-check-label,
.claim-form .checkbox-group > .form-check .form-check-label {
    margin: 0;
    line-height: 1.35;
}

.inline-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.attachment-close {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    line-height: 1;
}

@media (max-width: 600px) {
    .claim-form {
        max-width: none;
    }

    .claim-form h2 {
        font-size: 1.75rem;
    }

    .inline-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-top: 1.4rem;
    }

    .section-title h3 {
        font-size: 1.3rem;
    }

    .form-field input.date-input {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .section-title {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .section-title h3 {
        min-width: 0;
    }

    .label-with-tooltip {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .claim-form .btn-primary {
        width: 100%;
        max-width: 100%;
    }
}
