/******************* New Alert ******************/
#newAlert {
    width: 100%;
    margin: auto;
    padding: 0 20px 60px;
    max-width: 700px;
}

#newAlertTitle {
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    margin-bottom: 24px;
}

/************* Limit Reached *************/

#newAlertLimitReached {
    display: none;
}

#newAlertLimitReached.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #EBEBEA;
    border-radius: 10px;
}

#newAlertLimitReachedTitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

#newAlertLimitReachedText {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/************* Form Container *************/

#newAlertFormContainer {
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
}

#newAlertFormContainer.hidden {
    display: none;
}

/************* Specificity *************/

#newAlertSpecificity {
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #EBEBEA;
}

#newAlertSpecificityLabel {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

#newAlertSpecificityBar {
    width: 100%;
    height: 6px;
    background-color: #EBEBEA;
    border-radius: 3px;
    overflow: hidden;
}

#newAlertSpecificityBarFill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/************* Form Groups *************/

.newAlertFormGroup {
    margin-bottom: 20px;
    display: block;
}

.newAlertFormGroupTitle {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.newAlertFormGroupHint {
    font-size: 12px;
    color: #8C8D8B;
    margin-bottom: 5px;
}

.newAlertFormGroupInput {
    display: block;
    padding: 15px 10px;
    border: 2px solid lightgray;
    width: 100%;
    border-radius: 5px;
    transition: 0.3s;
}

.newAlertFormGroupInput:focus {
    border-color: var(--primary);
}

/************* Form Group Row (min/max pairs) *************/

.newAlertFormGroupRow {
    display: flex;
    gap: 10px;
}

.newAlertFormGroupRowInput {
    flex: 1;
    min-width: 0;
    display: block;
    padding: 15px 10px;
    border: 2px solid lightgray;
    border-radius: 5px;
    transition: 0.3s;
}

.newAlertFormGroupRowInput:focus {
    border-color: var(--primary);
}

/************* Location Toggle *************/

#newAlertLocationToggle {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.newAlertLocationToggleBtn {
    flex: 1;
    padding: 8px 4px;
    border: 2px solid #EBEBEA;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8C8D8B;
    text-align: center;
    transition: all 0.2s;
    width: auto;
}

.newAlertLocationToggleBtn:hover {
    border-color: var(--primary);
}

.newAlertLocationToggleBtn.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
}

.newAlertLocationSelect {
    display: none;
}

.newAlertLocationSelect.active {
    display: block;
}

/************* Disclaimer *************/

#newAlertDisclaimer {
    font-size: 13px;
    color: #8C8D8B;
    text-align: center;
    margin-bottom: 12px;
}

/************* Submit *************/

#newAlertForm .button {
    width: 100%;
}

@media (max-width: 800px) {
    #newAlertTitle {
        font-size: 24px;
    }
}

