.detect-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.form-row {
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.form-row:first-of-type {
    margin-bottom: 1.2rem;
}

.form-label {
    flex: 0 0 120px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-right: 1rem;
    text-align: right;
}

.form-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.form-content-region {
    margin: -23px 0 0 130px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.url-input {
    background: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(3.5px) !important;
    -webkit-backdrop-filter: blur(3.5px) !important;
    border-radius: 6px !important;
    height: 45px !important;
    padding: 0.5rem 1rem !important;
    width: 100%;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.url-input:focus {
    box-shadow: 0 0 0 2px rgba(14, 124, 179, 0.2) !important;
    outline: none;
}

.url-input::placeholder {
    color: #999999;
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.radio-option label {
    font-size: 1rem;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.keyword-input {
    display: none;
}

.keyword-input.show {
    display: flex;
    margin-top: 1rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.action-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.action-button.secondary {
    background: #6c757d;
}

.region-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.region-group-expanded {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.expand-button {
    margin-top: 12px;
    color: #0e7cb3;
    font-size: 1rem;
}

.expand-button:hover {
    text-decoration: underline;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.checkbox-option label {
    font-size: 1rem;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

@media (max-width: 768px) {
    .detect-container {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .form-label {
        flex: none;
        text-align: left;
        padding-right: 0;
    }

    .form-content {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .button-row {
        flex-direction: column;
        margin-top: 2rem;
    }
}

#regions, #regionsKeyword {
    margin-top: 10px;
}

#keyword-input {
    margin-top: 18px;
}

#regionsKeyword .checkbox-option {
    min-width: 170px;
}

.region-group-expanded-keyword {
    flex-wrap: wrap;
}

.continent-title {
    margin-bottom: 5px;
    font-weight: 400;
}

.continent-section {
    width: 25%;
    box-sizing: border-box;
    padding: 10px;
}

.continent-countries .checkbox-option {
    margin: 5px;
}

@media (max-width: 768px) {
    .continent-section {
        width: 100%;
    }
}