body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.container,.ThankYouContainer,.dynamic-section,.subQuestions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 95%;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dynamic-section,.subQuestions{
    padding: 0px 10px;
    background-color: transparent;
    min-width: 100%;
}

.ThankYouContainer{
    height: 90vh;
    text-align: center;
}

.ThankYouMessage {
    border: 3px solid #dee4ea;
    border-radius: 15px;
    padding: 10px;
}

.policeBanner {
    background: linear-gradient(165deg, #1E90FF 50%, #00008B 50%);
    color: aliceblue;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 15px 40px;
    border-radius: 6px;
    display: inline-block;
}

.headerRow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 65px;
    font-family: Arial, Helvetica, sans-serif;
}

.logo{
    height: 60px;
    width: 60px;
    border-radius: 10%;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    width: 90%;
    gap: 20px;
}

.rowSpecial,
.rowSpecial1,
.rowSpecial2,
.rowSpecial3,
.rowSpecial4 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rowSpecial1 {
    width: 74.75%;
}

.rowSpecial2 {
    width: 49.5%;
}

.rowSpecial3 {
    width: 66%;
}

.rowSpecial4 {
    width: 32%;
}

.form-group {
    flex: 1 1 calc(25% - 20px);
    /* 4 fields per row */
    min-width: 200px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.labelContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: start;
}

.form-group label, #urduText {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

#urduText {
    text-align: right;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="tel"],
form input[type="time"],
form input[type="date"],
form input[type="file"],
form input[type="password"],
form input[type="datetime-local"],
form select {
    margin: 0;
    /* flex: 1 1 calc(50% - 10px); */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background: gainsboro;
    /* ensures padding doesn't affect total width */
}
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    background: gainsboro;
}

.radio-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    cursor: pointer;
    background: gainsboro;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: background-color 0.2s, border-color 0.2s;
}

.radio-group input[type="radio"] {
    accent-color: #2d89ef; /* modern browsers */
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.radio-group label:hover {
    background-color: #e6e6e6;
    border-color: #2d89ef;
}


form .btn {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    width: auto;
    margin: auto;
    background-color: #2d89ef;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

form .btn:hover {
    background-color: #1b66c9;
}

@media (max-width: 768px) {
    .headerRow {
        gap: 7px;
    }
    h1 {
        font-size: 30px;
    }
}

@media (max-width: 395px) {
    h1 {
        font-size: 24px;
    }
    .labelContainer{
        font-size: 14px;
    }
}

@media (max-width: 330px) {
    h1 {
        font-size: 18px;
    }
}

@media (max-width: 250px) {
    .headerRow {
        margin-left: 10px;
    }
}